File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Without new operator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Without new operator" Watch "Without new operator" New topic
Author

Without new operator

Manoj Paul
Ranch Hand

Joined: Jan 18, 2007
Posts: 112
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: 112
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: 14687
    
  16

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
 
Similar Threads
Create object Without new operator
String
Create object Without new operator
Creation of Object without New & Construcotr
Without new operator