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
What is meant by anonymous class?
Why we cannot override static method?
who can i handle multiple client in RMI
What is the full meaning of java?
Can we declare an interface as final?
What is object-oriented paradigm?
What is a variable in java?
Can you override a final method?
How do you empty a list in java?
What are the different approaches to implement a function to generate a random number?
What's the base class of all exception classes?
List some features of the abstract class.
What are some examples of variable costs?
How can you read content from file in java?
What are different types of inner classes ?