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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -