| Author |
Without new operator
|
Manoj Paul
Ranch Hand
Joined: Jan 18, 2007
Posts: 109
|
|
hello everybody. Can anyone tell me how to create an object without using the new operator? Thank you
|
 |
Manoj Paul
Ranch Hand
Joined: Jan 18, 2007
Posts: 109
|
|
Here is my program. An object 'object' is created using the new operator. I want to create an object without using the new operator. Can you suggest how? **************************************** ****************************************
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
Hi Manoj, you may not have noticed that you are asking this in the JSP forum, which is not at all related to your question ;) Please be careful next time. To answer your question, you should try to look at Class#newInstance(). But I don't see how it would help in your example. Maybe you just want to make your check method as static ? [ July 03, 2007: Message edited by: Satou kurinosuke ]
|
[My Blog]
All roads lead to JavaRanch
|
 |
 |
|
|
subject: Without new operator
|
|
|