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...

What is a singleton class in Java? And How to implement a singleton class?

Answer Posted / nashiinformaticssolutions

A singleton class is one that can only have one object at a time. The following procedures must be followed in order to implement a singleton class:

Verify that there is only one object in the class.

Allow the item to be accessed globally.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when should you use stringbuilder class in a program?

991


Explain java coding standards for constants?

1023


What are the uses of synchronized keyword?

1004


Which keyword specify that a variable is effectively final ?

1000


Why java strings are immutable in nature?

1078


What is application tier?

1127


What is difference between overloading and overriding in java?

1034


What is difference between == equals () and compareto () method?

1053


Why do I need to declare the type of a variable in java?

1084


What are the drawbacks of singleton class?

1011


List some important characteristics on jre

1076


Is intellij better than eclipse?

1097


What is public static?

1042


What are the rules for naming an array?

1062


Why java uses the concept of the string literal?

1065