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

What is primitive data type in java?

988


Difference between default and protected access specifiers?

1136


Explain the protected field modifier?

1109


How does arraylist work in java?

1129


What do you mean by platform independence?

1057


Explain the difference between collection api and stream api in java8?

989


Which collection allows duplicate values in java?

976


What does microservices mean?

956


How to provide security in java

2285


Can we create an object of private class?

974


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1080


How can a gui component handle its own events?

1115


Can we declare a class as abstract without having any abstract method?

1007


what happens when a thread cannot acquire a lock on an object? : Java thread

1055


What is difference between synchronize and concurrent collection in java?

1080