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 Session reduplication and how its done?
What is use of a abstract variable?
Is a method a function?
Is 0 an irrational number?
What are keyboard events?
Explain the use of shift operator in java. Can you give some examples?
What are java threads?
What do you understand by looping in java? Explain the different types of loops.
Explain the difference between collection api and stream api in java8?
What are conditionals and its types?
how are methods defined?
How to stop a thread in java? Explain about sleep () method in a thread?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
Which is the best approach for creating thread ?
describe method overloading