How to prevent to create multiple objects of a java class?
Answers were Sorted based on User's Feedback
Answer / sadiq
Using Singleton Design pattern we can prevent class creating
multiple objects.
| Is This Answer Correct ? | 30 Yes | 3 No |
Answer / naseer
declare constructor as private .that class only create one object
| Is This Answer Correct ? | 10 Yes | 6 No |
Differentiate between array list and vector in java.
What is a J2EE component? List out all the component?
Which is better arraylist or vector?
How do you break a loop?
What is an argument java?
What is a literal coding?
What is return used for in java?
WHAT IS THE SCOPE FOR COREJAVA...? IS JAVA ONLY CORE JAVA ?
Which is bigger float or double?
What are the drawbacks of singleton class?
List some important features of java 10 release?
what is inner class?