DEVFYI - Developer Resource - FYI

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

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

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

Synchronized blocks place locks for shorter periods than synchronized methods.

(Continued on next question...)

Other Interview Questions