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


Please Help Members By Posting Answers For Below Questions

What are the differences between forwarding () method and sendredirect() methods?

822


What are the types of java languages?

718


What are filterstreams?

823


When should I use stringbuffer?

760


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

809


What are conditionals and its types?

816


Explain about strings in java?

810


What is a local block?

877


What is the purpose of static keyword in java?

702


Can we restart a thread already started in java?

803


What are the 8 primitive data types in java?

754


What are wrapper classes in java?

785


Which is better ascii or unicode?

750


Explain about doubly linked list

817


Realized?

1891