This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Without new operator Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Without new operator" Watch "Without new operator" New topic
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
    
  11

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Without new operator
 
Similar Threads
Create object Without new operator
Creation of Object without New & Construcotr
String
Create object Without new operator
Without new operator