what is private constructor?what are the uses of writing
private constructor in our program?
Answer Posted / amit
Private constructor can be used to make a pure static
class, using it we can create only one instance of class at
the loading time.
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
can any body body expalin best definitions & best real time exaples for opps concepts.
Why is it important to initialize a variable?
What is the difference between iterator and enumeration ?
What is ascii format?
What are the types of casting?
What is singleton service?
Define the term string pool?
What is type parameter in java?
What is the nested interface?
Justify your answer that you can't define a method inside another method in java, if you can then how?
how does the run() method in runnable work? : Java thread
What happens to the Exception object after handling an exception?
How do you read and print a string in java?
Do I need java for windows 10?
Is java pass by value or pass by reference?