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 do generics work?

946


Can we declare register variable as global?

933


How objects of a class are created if no constructor is defined in the class?

1072


What is the difference between && and & in java?

1083


Explain the term virtual machine?

1047


What is the purpose of extern variable?

1018


How to do encapsulation in java?

1053


What is methods and methodology?

1029


What is remote method invocation (rmi)?

1066


What are the differences between this and super keyword?

946


What is difference between filereader and bufferedreader?

960


What is percentage in java?

1006


Explain what is Marker interface?

1090


What is the use of inner class?

1046


What is the purpose of object oriented programming?

980