Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

Avoid cloning of singleton object

Hi,

Let me know  how to avoid the cloning of the singleton object.

Thanks
0
roy_sanu
Asked:
roy_sanu
  • 2
1 Solution
 
CEHJCommented:
Make it final. Then the fact that is does NOT implement Cloneable will render it impossible to clone()
0
 
CEHJCommented:
:)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now