Singleton pattern

Dinesh Pun
Dinesh Pun
Member
8 Points
4 Posts

How to break singleton pattern in java?

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

Share:   fb twitter linkedin
Answers
Smith
Smith
None
2568 Points
74 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