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 use of predicate in java 8?

907


Is nan false?

926


What are the differences between string, stringbuffer and stringbuilder?

981


What do you understand by Header linked List?

1045


Can a class have multiple superclasses?

1100


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

976


What is computer compiler?

951


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

917


What are runtime exceptions?

1123


What is numeric data type?

943


What is the difference between a method and a function in alice?

1118


What is meant by null and void?

936


Define an abstract class with reference to java.

957


What is the difference between class forname and new?

960


Why is java called the platform independent programming language?

963