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 are the differences between forwarding () method and sendredirect() methods?
What are the types of java languages?
What are filterstreams?
When should I use stringbuffer?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What are conditionals and its types?
Explain about strings in java?
What is a local block?
What is the purpose of static keyword in java?
Can we restart a thread already started in java?
What are the 8 primitive data types in java?
What are wrapper classes in java?
Which is better ascii or unicode?
Explain about doubly linked list
Realized?