Singleton pattern

Dinesh Pun
Dinesh Pun
8 Points
4 Posts

How to break singleton pattern in java?

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

Share:   fb twitter linkedin
Answers
Smith
Smith
Participant
360 Points
110 Posts
Marked as answer      

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
banner

Blog

Active User (2)

 Log In to Chat