wood burning stoves*
The moose likes Java in General and the fly likes new instance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "new instance" Watch "new instance" New topic

new instance

Venu Navat
Ranch Hand

Joined: Dec 28, 2004
Posts: 30
can we create an object for a class without using new keyword?how?/

-Venu Navat
marc weber

Joined: Aug 31, 2004
Posts: 11343

Well, there are special cases like String, Array, and (with 5.0 autoboxing) wrappers. But for general cases, there's the Class class...

Note that "newInstance" is a method name in Class, so "new" is not being used as a keyword.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Venu Navat
Ranch Hand

Joined: Dec 28, 2004
Posts: 30
thanks marc weber.........i got it......
I agree. Here's the link: http://aspose.com/file-tools
subject: new instance
Similar Threads
Which type of an American would you be?
Place Association
Is the book a full rewrite of iPhone in Action
Problem editing my message
Testing a constructor....