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

What is empty string literal in java?

993


What is the importance of static variable?

1053


What does @override mean?

1106


How many classes can any class inherit java?

926


What is the difference between delete and delete[]

1406


How do you replace all in word?

989


Explain tree set and its features?

1000


What is the size of int in 64-bit jvm?

1011


What is private static in java?

996


Why set do not allow duplicates in java?

1002


What is the purpose of stub and skeleton?

955


What is JFC?

1159


What does sprintf mean?

876


Is oracle java 11 free?

900


What language is java written?

966