How to prevent to create multiple objects of a java class?
Answer Posted / naseer
declare constructor as private .that class only create one object
| Is This Answer Correct ? | 10 Yes | 6 No |
Post New Answer View All Answers
Can a private method of a superclass be declared within a subclass?
What is the use of arrays tostring () in java?
What is nested class?
what is the significance of listiterator in java?
What do you mean by multithreaded program?
what is session in java?
What is merge sort in java?
What are the types of sockets in java?
What is the purpose of static methods and static variables?
What about instanceof operator in java?
Explain about arraylist?
Is node a data type in java?
What is one third plus one third as a fraction?
What is hash in java?
Explain with example the concept of constant variable in java.