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
Can a class have an interface?
Why constructor has no return type?
Is class is a data type?
Is an empty arraylist null?
What is the difference between an if statement and a switch statement?
How do you ensure that n threads can access n resources without deadlock?
What kind of variables can a class consist?
What is return keyword in java?
Is there any limitation of using inheritance?
What is the difference between keyword and identifier?
What are the difference between composition and inheritance in java?
What is extension method in java?
What is string made of?
What are the features of java?
define polymorphism in java