WELCOME TO JAVA FAQS
What is the difference between synchronized block and synchronized method ?
Synchronized block acquires the lock for shorter period then synchronized method. So always block is the better choice for programming.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment