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
How to create an interface?
Can a string be null?
What is dynamic binding(late binding)?
What are data types in programming?
What is an immutable class? How to create an immutable class?
What is a numeric digit?
Explain throw keyword in java?
Can we have multiple catch block for a try block?
What is intern method in java?
What is the difference between method overriding and overloading?
What is the difference between an object-oriented programming language and object-based programming language?
What is the purpose of return statement?
How many bytes is a char in java?
What are some characteristics of interference class?
What is scope & storage allocation of static, local and register variables? Explain with an example.