Why would you use a synchronized block vs. synchronized method?

Answer :
Synchronized blocks place locks for shorter periods than synchronized methods.

0 comments:

Post a Comment

 
Copyright © Interview Questions and answers - Blogger Theme by BloggerThemes & freecsstemplates - Sponsored by Internet Entrepreneur