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 can we design/implement singleton object?

Answer Posted / jayashri

by declaring the constructor as private and we have to create public static method which returns the address of single object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the SDLC phases you have invloved ?

2691


What is the creational design pattern?

1025


What is the difference between proxy and adapter?

1051


What is the difference between factory and abstract factory design pattern?

946


What are the design patterns you know explain?

1054


What is singleton design pattern in java?

1089


Can you explain singleton pattern?

995


What is a lazy initialization in singleton?

1082


What is aop design?

971


What are the most commonly used design patterns?

1003


How did you design your unit tests?What about integration tests?

2189


What are the types of the proxy design you will get in the design pattern?

932


What is the difference between architecture and design?

1027


Can we inherit singleton class?

1049


Is dependency injection a design pattern?

949