| Author |
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
Sheriff
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
sscce.org
|
 |
Venu Navat
Ranch Hand
Joined: Dec 28, 2004
Posts: 30
|
|
|
thanks marc weber.........i got it......
|
 |
 |
|
|
subject: new instance
|
|
|