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 is the static import?

1151


What does the “static” keyword mean? Can you override private or static method in java?

1163


What is static method with example?

1250


What are JVM.JRE, J2EE, JNI?

1161


What is difference between printf and scanf?

1227


What is a key in java?

1021


Is 64bit faster than 32 bit?

1123


Can you explain the private protected field modifier?

1075


What is strings in java?

1089


What are constants and how to create constants in java?

1036


What is the use of runnable interface?

1234


Why we use protected in java?

1023


What is the use of StringTokenizer class?

1112


Is space a character in java?

1066


Is nullpointerexception checked or unchecked?

1070