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

What type of language is java?

999


Is java a digit method?

993


Is arraylist dynamic in java?

986


What is the difference in between cpp and java? Can u explain in detail?

1091


Can we convert list to set in java?

982


Is treeset sorted in java?

986


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

1067


What checkbox method allows you to tell if a checkbox is checked?

1005


What does flagged out mean?

1059


Can we have a method name same as class name in java?

1051


How do you detect memory leaks?

1058


What is the disadvantage of synchronization?

1010


What does bitwise or mean?

1070


Is null an object java?

987


Is jdk required on each machine to run a java program?

1285