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

Can we override tostring method in java?

937


Is java free for businesses?

1029


What is the dot operator?

953


Write java program to reverse string without using api?

1000


How do you remove duplicates in java?

967


What is the difference between the paint() and repaint() methods?

1023


What is thread safe in java?

952


What is a byte string?

1061


Is void a keyword in java?

972


Explain importance of inheritance in java?

973


Can we extend private class in java?

936


What are the advantages of java over C++?

1157


Is map sorted in java?

1016


Why collection doesn’t extend cloneable and serializable interfaces?

1061


What does the append?

953