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
What is independent and dependent variables in research?
How do you calculate square roots?
What is the use of protected in java?
Explain the importance of import keyword in java?
What is the integer of 16?
Explain public static void main(string args[]) in java.
Can arraylist hold different types java?
Where is the find and replace?
What is the loop in java?
How do you get length in java?
What is an array in java?
What is jee6?
Can we execute a program without main?
What are the advantages of user defined functions?
What is the common usage of serialization?