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
What is difference between array and arraylist in java?
Can we override a variable in java?
Which java version is latest?
What is meant by stack and queue?
what is the difference between the methods sleep() and wait()? : Java thread
What is the purpose of javac exe?
How the interruptible method gets implemented?
What is nullpointerexception in java?
What is the difference between jdk, jre, and jvm?
Explain try and catch keywords in java?
Explain about serializable interface in java?
What is an interface in java? Explain
Why should I use abstract class?
Explain java coding standards for classes or java coding conventions for classes?
Is string a wrapper class?