Solved

Avoid cloning of singleton object

Posted on 2013-10-24
2
265 Views
Last Modified: 2013-10-28
Hi,

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

Thanks
0
Comment
Question by:roy_sanu
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 135 total points
ID: 39597705
Make it final. Then the fact that is does NOT implement Cloneable will render it impossible to clone()
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39604960
:)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now