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 / rajani nagandla

The Singleton is a useful Design Pattern for allowing only
one instance of your class.The Singleton's purpose is to
control object creation, limiting the number to one but
allowing the flexibility to create more objects if the
situation changes. Since there is only one Singleton
instance, any instance fields of a Singleton will occur
only once per class, just like static fields.



Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use return in constructor?

943


What is unmodifiable collection in java?

920


Explain the usage of this with constructors?

1024


What is array and arraylist in java?

1102


What does a method signature consist of?

978


Can we extend singleton class?

947


How do you download stubs from Remote place?

1779


what is mena by object block any what is the use of that

2212


What are the methods of object class ?

1053


When the constructor of a class is invoked?

1027


Explain about narrowing conversion in java?

1002


What is an empty class? What functionality does it offer in Java?

1267


How can we break singleton in java?

964


Is singleton thread safe in java?

968


What are triggers in DB? Explain their types. How do they work?

1086