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's the purpose of using break in each case of switch statement?

501


What is a percentage sign called?

614


What is the purpose of abstract class?

517


What is compareto?

536


What is difference between class and object in java?

521






difference between byte stream class and character stream class?

4075


What are classloaders?

593


Differences between traditional programming language and object oriented programming language?

565


What is exception propagation?

583


What does sprintf mean?

525


What is difference between static class and normal class?

526


Why java is platform independent? Explain.

597


What are 4 pillers of object orinted programming?

576


why doesn't java run on all platforms?

563


Are true and false keywords?

560