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

What happens when a thread cannot acquire a lock on an object in java programming?

1071


How to create a fecelet view?

1041


Explain thread in java?

1230


Can we access instance variables within static methods ?

1150


How do you use find and replace?

1000


What is the default value of byte datatype in java?

974


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

1292


What is class level lock ?

1077


What is the difference between a constructor and a method?

1327


Give the difference between the println method and sqrt method?

1130


Why is string builder not thread safe?

1117


is there a separate stack for each thread in java? : Java thread

1029


Are there structures in java?

1027


What is the indent key?

1087


What is the best definition for data?

1022