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

Suppose there is an Online shopping cart application having
different objects like Cart, SelectionItem, Billing,
COnfiguration, Authentication, Authorization,
PersonalDetails etc. Out of this which one can be made a
singleton pattern and why?

Answer Posted / siddharth

With singleton design pattern we can ensure the following:
1) Only one instance on the class is created
2) Provide global point of access to the object.
example: printerspoolers

So in the above question configuration can be made a
singleton design pattern as configuration is same for
everyone

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between the public, private, final, protected, and default modifiers?

1045


What does 3 dots mean in java?

993


What is the method in java?

1106


Which is the class in java?

1058


What is the java idl system?

1049


How does compareto work in java?

1043


What are the advantages of java?

991


os is developed in c no java is more secured then c na why dont the os developed is developed using java

4231


What do you mean by byte code?

1008


Explain the pointers in Java?

1056


What is bean? Where it can be used?

1088


What is immutable state?

1031


What is break and continue statement?

1098


What is variable explain with example?

1067


What is lazy initialization in java?

1017