Subho Pramanik wrote:I think my concept is not clear about synchronization and singleton object. What is the difference between synchronized method and singleton object's method ?
Thanks in advance.
There is no relationship between synchronization and singletons. A Singleton is a class that ensures only one instance of the class can exist, and is a design
pattern (or a design anti-pattern depending on your viewpoint).
A singletons methods can be synchronized or not synchronized, just like any other method.