The singleton design pattern is designed to restrict instantiation of a class to one (or a few) objects. This is useful when exactly one object is needed to coordinate actions across the system. Sometimes it is generalized to systems that operate more efficiently when only one or a few objects exist.
Category:Java Interview Questions
Hi, this is a comment.
ReplyDeleteTo delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.