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
what is object-oriented programming in java?
Can a static block throw exception?
Differece between class and generic class?
How do you create an array in java?
Why parsing is done?
Is java a super set of javascript?
What are untrusted applets?
How finally used under exception handling?
What are inbuilt functions in java?
What is singleton class and how can we make a class singleton?
What are nested classes in java?
Can you write a java class that could be used both as an applet as well as an application?
What is difference between char array and string?
Can I extend singleton class in java?
What is the purpose of a default constructor?