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
How do you escape json?
Can this keyword be used to refer static members?
Is string a data type in java?
What is the difference between JDK and JVM?
Can a list be null in java?
In which language java is written?
What is a bufferedreader?
What types of index data structures can you have in java?
List primitive java types?
Why is singleton instance static?
How we can generate random numbers in java?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
Why is stringbuffer called mutable?
What is the use of protected in java?
How to split a string in java?