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

What type of value does sizeof return?

1012


Why use string handling in Java?

1032


What is array size in java?

965


What is a boolean in java?

1054


What is the public method modifier?

1016


How to create a base64 decoder in java8?

1063


Write a method to check if input string is palindrome?

1019


Explain try and catch keywords in java?

1208


Write a program to print fibonacci series up to count 10.

902


What are the different ways of implementing thread? Which one is more advantageous?

987


What is the use of callablestatement?

1022


Can I uninstall java?

1056


what are the disadvantages of indexes in oracle?

2559


What is a line break example?

1002


What do you mean by local variable and instance variable?

958