Answer Posted / 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 |
Post New Answer View All Answers
Is main is a keyword?
Compare overloading and overriding?
What is are packages?
What is the size of a string in java?
What is a java developer salary?
what is thread in Java ?
Explain about class in java?
Explain java coding standards for classes or java coding conventions for classes?
Which access specifier can be used with class ?
Is 0 true or false in java?
What is == mean?
Explain how can you debug the Java code?
Is there a sort function in java?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is method overloading in JAVA? Why is it not present in C ?