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

Why singleton beans are not thread safe?

1072


What are the differences between the design patterns and the framework?

1178


How do you choose a design pattern?

1030


Is singleton bean thread safe?

949


What are the most popular design patterns?

1057


Contact a system development program in your organization. Research how they analyzed their SYSTEM OF INTEREST (SOI), its OPERATING ENVIRONMENT, and their respective system elements. How was this analysis reflected in the SOI architecture?

4136


Why have we declared the instance reference volatile?

985


What are the most important software design patterns?

1164


Can we use an equated value as operands for an MVC ? Reason for the same.

2435


What is the difference between factory and strategy design pattern?

1043


Is mvc is a design pattern?

1092


Why should we not use singleton pattern?

1081


Can you explain singleton pattern?

1035


What are the 23 design patterns?

1163


Quartus II software version 6.0 is available for which operating systems (OS)?

2456