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 |
Explain the key functions of data binding?
0 Answers Akamai Technologies, Aspire, Impetus, Infogain, Tavant Technologies, Virtusa,
What is the byte order of byte buffer?
What is serializable interface?
13 Answers Infosys, Probity Soft, Seed Infotech,
WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?
What is set and get methods in java?
Define Multiprogramming and Multiprocessing in java.
0 Answers Akamai Technologies,
Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types
Is object a data type in java?
How does arrays sort work in java?
What is the difference between arraylist and hashset in java?
What is string in java? String is a data type?
Explain when we should make an instance variable private.