Singleton pattern

Dinesh Pun
Dinesh Pun
8 Points
4 Posts

How to break singleton pattern in java?

Views: 9822
Total Answered: 1
Total Marked As Answer: 1
Posted On: 13-Oct-2015 10:34

Share:   fb twitter linkedin
Answers
Smith
Smith
2890 Points
78 Posts
         

Hi Dinesh,

I googled and I found following ways:

  • It can break if the class is Serializable
  • It can break if its 'Clonable`
  • You can break by Reflection
  • it can break if multiple classloaders are loaded the class
Posted On: 14-Oct-2015 04:53
 Log In to Chat