Singleton pattern

Dinesh Pun
Dinesh Pun
8 Points
4 Posts

How to break singleton pattern in java?

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

Share:   fb twitter linkedin
Answers
Smith
Smith
Participant
374 Points
112 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