how can u create the object with out new operator
Answers were Sorted based on User's Feedback
Answer / md. abid hossain
In 3 ways..
1)Using a Static Factory Method
ABC.getInstance();
2)Using newInstance() method...
class A=(A)Class.forName("A").newInstance();
3)Using clone() method.
| Is This Answer Correct ? | 11 Yes | 2 No |
What is a java predicate?
What does math floor () do?
Is 0 a real number?
What is difference between module and function?
What are the various access specifiers in java?
What is instanceof keyword?
What is the difference between C++ & Java?
78 Answers College School Exams Tests, HAL, SUN, Syntel, TCS, Wipro,
How to perform selection sort in java?
What is difference between abstract class & final class
What are triggers in DB? Explain their types. How do they work?
Why pointers are not used in java?
Explain the significance of listiterator.