Guys
Please help, I am trying to figure out a problem in live with the following piece of code.
This is unusual coding style where in someone has created an Instance of an Singleton object using an local instance inside the method first and then finally assigning to static (Singleton) instance.
But what i find is Finalizer
thread running frequently on these local instance which will destroy PinServer31 object which is not expected to happen by design
I understand that code should use static instance rather than local instance to sovle any problem.
But i am not able to explain why currently the below code makes local instances to be garbage collected please can you explain.
SCJP, SCWCD, SCBCD, SCEA 5