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 the significance of class loaders in bootstrap?
What is ‘has a’’ relationship in java?
What about abstract classes in java?
How do I start learning java?
What is type inference in java8?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
What is the main difference between java platform and other platforms?
What is the access scope of protected access specifier?
What is variable and constant explain with example?
What are features of java?
What is communist flag?
In java, how we can disallow serialization of variables?
Is an object null?
How do you achieve polymorphism in java?
What is the difference between multitasking and multithreading in Java