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
What are 5 boolean operators?
What super () does in java?
What is difference between static class and normal class?
What is xslt in java?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is the purpose of void class?
What is java reflection?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What will happen if a thrown exception is not handled?
What defines function?
What are some examples of variable costs?
Why is singleton instance static?
Can we have more than one package statement in source file ?
Define how destructors are defined in java?
What is purpose of keyword void?