How to create an instance of a class if the class has
private constructor?
Answer Posted / meera
create an instance of a class within the same class.
then u can create an instance of a class if the class has
private constructor.
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Write java program to reverse string without using api?
What is difference between jdk,jre and jvm?
What is the different between get and post?
Can you override a final method?
What is complexity and its types?
What is an exception? difference between Checked and Unchecked exception in Java
Explain the difference between private, public, package and protected in java?
What is object data type?
Can we sort a map in java?
What is += mean in java?
What does 0 mean in boolean?
Why java is considered as platform independent?
What are static blocks and static initalizers in java ?
Can a static member function access member variable of an object?
What are the restrictions imposed by a Security Manager on Applets?.