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
Explain reverse a linked list recursive java solution?
What is t type java?
How to create a base64 decoder in java8?
Explain wait(), notify() and notifyall() methods of object class ?
Can we sort hashmap in java?
How to handle a web browser resize operation?
What are three advantages of using functions?
Difference between throw and throws?
What is api in java?
What is public/private protected in java?
What is a variable in java?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What are the restrictions imposed by a Security Manager on Applets?.
What do you understand by java virtual machine?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.