what is private constructor?what are the uses of writing
private constructor in our program?
Answer Posted / neha
In Private Construtor is that
1. We used The Private acess Modifier
2. In Private Construtor We can Not Create the instance Of
this Class in Outside Class
3. We can used only Static Data Member In Private Construtor
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How can you handle java exceptions?
What is the difference between scrollbar and scrollpane?
What is logical variable?
What is final method in java?
What is generics in java interview questions?
What are the different conditional statements?
What is a copy constructor in java?
What is java Applet?
Explain try and catch keywords in java?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
What is comparable and comparator interface? List their differences
How many ways can you break a singleton class in java?
Why are generics used?
Explain different states of a thread in java?
What are accessor methods in java?