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
Explain what is encapsulation?
Explain about object oriented programming and its features?
Define how does a try statement determine which catch clause should be used to handle an exception?
Is ruby built on java?
Which collections are thread safe in java?
Is java free for commercial?
Can list contain null in java?
What is javac in java?
what is function overloading in java?
What is difference between static class and normal class?
Why char array is preferred over string for storing password?
What is the platform?
Is there any sort function in java?
What is the final keyword?
What is a string what operation can be performed out with the help of a string?