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 do I get 64 bit java?
What is the use of a conditional inclusion statement in Java ?
Explain polymorphism citing an example.
How many characters is 16 bytes?
Can we initialize the final blank variable?
Is string a class in java?
Can interface be private in java?
How can you write a loop indefinitely in java programming?
Is it possible to instantiate the abstract class?
Why declare Main() inside the class in java ?
What is a linkedhashmap java?
Can an interface have a constructor?
What is sorting in java?
What is the purpose of garbage collection in java? When is it used?
Can you explain the cs option of java interpreter?