what is singlton class?where it is use in real time senario.
Answer Posted / asishbls
A java class is said to be a singleton class if it creates
only one instance per jvm.
It is used generally in utill class.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Why singleton is not thread safe?
What is the meaning of flag day?
What is a parameter example?
What does you mean in math?
Can you make a constructor final in Java?
What is the importance of static variable?
Can we sort hashset in java?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What is method overloading and method overriding?
What is java Applet?
Why volatile is used in java?
What does the “static” keyword mean? Can you override private or static method in java?
Is string serializable in java?
What is public static?
What environment variables do I need to set on my machine in order to be able to run java programs?