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 / sivadasan

Singleton class allows to create only one instance of the
class. But the other objects can inherit from it. Singleton
is a Design Pattern to restrict create more than one
instance of a class.

And

1. It ensures only one object created for a class
2. Provides global point of access.

Mostly it is used to create DB connections.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long will it take to learn java?

985


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

1069


explain copyonwritearraylist and when do we use copyonwritearraylist?

942


What is thread synchronization in java?

888


What defines function?

967


What are internal and external variables?

951


What is anti pattern in java?

963


Can we have this () and super () together?

1041


What is finalize()? Is finalize() similar to a destructor?

963


What is this keyword in java?

1031


If a class is declared without any access modifiers, where may the class be accessed in java programming?

1208


What are the different conditional statements?

984


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

922


What does this mean java?

1095


What is a line break example?

990