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
Why are pointers not secure?
How do you use spaces in java?
What are Normalization Rules? Define Normalization?
what is mena by object block any what is the use of that
How can I right-justify a string?
What does it mean that a class or member is final?
What class of exceptions are generated by the java run-time system?
What is the function of http?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What are annotations in java?
Can you instantiate the math class in Java?
Can a final method be overloaded?
Can you create an object of an abstract class?
What is a super method?
What does indexof return in java?