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

What is difference between classpath and path variables in java?

893


How to calculate the length of a singly linked list in java?

789


What is pangram in java?

777


What is time complexity algorithm?

807


What is int lol?

878


What is private public protected in java?

817


What is meant by method overriding?

800


What are the advantages of arraylist over arrays?

817


Difference between serialization and deserialization in java?

870


What is lazy programming?

788


What are parsers? Dom vs sax parser.

804


Which is bigger float or double java?

757


When is the arraystoreexception thrown?

780


How do constructors use this() and super()?

818


why Interface used?

753