What is singleton class?
Answer Posted / abhijith thette nagarajan
As per the definition,Singleton class in one such class
which will have only one instance of it at any given point
of time...
But,it is allowed to any number of instances,not
necessarily be one..
Generally its contructor will have "protected" key work,no
problem also if we have private also,but if it is
private,we need to have a getter method to create an
instance...
| Is This Answer Correct ? | 34 Yes | 20 No |
Post New Answer View All Answers
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Differentiate between vector and array list.
How do you use parseint in java?
Highest level event class of the event-delegation model?
How do you sort a string in alphabetical order in java?
What is stringjoiner ?
How do you create a sop?
What does compareto () do in java?
What is keyword and identifier?
What is percentage in java?
How to compare two strings in java program?
What are the major drawbacks of external iteration?
Why we use set in java?
What is singleton class and how can we make a class singleton?
What is the buffer limit?