what is private constructor?what are the uses of writing
private constructor in our program?
Answer Posted / udaychow
only once instance of a particular class is allowed.through
private constructor only we can achieve singleton design
pattern.
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
Explain notify() method of object class ?
Is null keyword in java?
What is the r character?
What is the purpose of static keyword in java?
What is Java Reflection API? Why it’s so important to have?
What is the difference between a switch statement and an if statement?
Why is multithreading important?
What is keyword and identifier?
What is the use of arraylist in java?
What is a method type?
What are computer functions?
What is append in java?
What is java reflection?
What does 3 dots mean in java?
What is a platform?