How to create an instance of a class without using "new"
operator? Plz help me out properly.Thank u.
Answer Posted / saravanan p
By using Class d=Class.forName("className");
Object obj=c.newInstance();
| Is This Answer Correct ? | 77 Yes | 4 No |
Post New Answer View All Answers
Does .length start 0 java?
Name few java util classes introduced with java 8 ?
How can we make sure main() is the last thread to finish in java program?
Differentiate jar and war files?
What is the difference between dom and sax parser in java?
Difference between Linked list and Queue?
How do you input a string in java?
What is a variable simple definition?
What is a "pure virtual" member function?
How big is a 32 bit integer?
Is it necessary that each try block must be followed by a catch block?
What is the primitive type short?
what is nested class in java?
What is the basic concept of java?
What are the different types of inner classes?