Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain the difference between the public, private, final, protected, and default modifiers?

1044


What are the differences between heap and stack memory in java?

1057


Can you use abstract and final both with a method?

1087


What is string subsequence method?

1126


Is char a method in java?

1066


Can a class extend more than one class?

1124


Can we increase array size dynamically in java?

947


List some important characteristics on jre

1076


What is the role of the java.rmi.naming class?

1070


How we can generate random numbers in java?

1132


Is java an open source?

971


What is data member in java?

1048


Break statement can be used as labels in java?

1002


What is the purpose of checked and unchecked exceptions in JAVA?

1011


Can we override constructors?

1003