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
What is integers and example?
How do you write methodology?
List out five keywords related to exception handling ?
What is bubble sort in java?
What are the differences between c++ and java?
What is Session reduplication and how its done?
What is the concept of multithreading?
Does java support function overloading, pointers, structures, unions or linked lists?
What are the differences between path and classpath variables?
Which one of the following suits the description of a string better: derived or primitive?
Can we extend singleton class in java?
What is keyword auto for?
Can we overload the methods by making them static?
What is thread life cycle in java?
Is simpledateformat safe to use in the multithreaded program?