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 the same as procedures?
What is the difference between the size and capacity of a vector?
Does Java support multiple Inheritance?
Explain java code for recursive solution's base case?
Where is the singleton class used?
What are the advantages of the model over the event- inheritance model?
What is math floor in java?
What is multithreading and its advantages?
What is files manifesting?
What is the default initialized value of a boolean type variable?
What is the purpose of abstract class?
Why java is object oriented?