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


Please Help Members By Posting Answers For Below Questions

Write java program to reverse string without using api?

547


What is difference between jdk,jre and jvm?

563


What is the different between get and post?

496


Can you override a final method?

578


What is complexity and its types?

520






What is an exception? difference between Checked and Unchecked exception in Java

552


Explain the difference between private, public, package and protected in java?

593


What is object data type?

561


Can we sort a map in java?

574


What is += mean in java?

540


What does 0 mean in boolean?

538


Why java is considered as platform independent?

588


What are static blocks and static initalizers in java ?

582


Can a static member function access member variable of an object?

554


What are the restrictions imposed by a Security Manager on Applets?.

2061