Singleton method and class method Java -
i'm wondering different between static method , singleton class method when use them multiple thread. think if use static method, conflict result data or parameter don't think use singleton method class same problem occur.
when create static method can used without creating instance of class, not true when you're creating class-method.
synchronization orthogonal issue: you'll have use kind of synchronization mechanism regardless of 1 of 2 options chose use.
wiki
Comments
Post a Comment