How many objects are created for a singleton class
Answer Posted / utkarsh verma
Some correction required in last solution
void main(){
Single *ptr = Single::Instance(); //The only way to
//instantiate
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can we override tostring method in java?
Is java free for businesses?
What is the dot operator?
Write java program to reverse string without using api?
How do you remove duplicates in java?
What is the difference between the paint() and repaint() methods?
What is thread safe in java?
What is a byte string?
Is void a keyword in java?
Explain importance of inheritance in java?
Can we extend private class in java?
What are the advantages of java over C++?
Is map sorted in java?
Why collection doesn’t extend cloneable and serializable interfaces?
What does the append?