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 jms? features of jms
What are the four integer types supported by java?
What is a parameter in java?
Can we clone singleton class in java?
What is an infinite loop? How infinite loop is declared?
How does Vector implement synchronization?
What is string literal in java?
What methods are called, When we navigate from one applet to another applet?
How to stop a thread in java? Explain about sleep () method in a thread?
Is arraylist ordered?
If a class is declared without any access modifiers, where can the class be accessed?
________ exception must be either caught or specified in throws class of the method.