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
What is serialversionuid?
Why 1 is not a prime number?
What will happen to the exception object after exception handling?
What are the 8 data types in java?
Does java isempty check for null?
Can you override a final method?
How to instantiate member inner class?
What is a parameter example?
What about member inner classes?
Explain notify() method of object class ?
How do you download stubs from Remote place?
Is cout buffered?
When will we use them?
What is sleep method?
Mention the default values of all the elements of an array defined as an instance variable.