Page 1 of 1

What is the difference between synchronized block and synchronized keyword ?

Posted: Thu Oct 06, 2016 4:26 pm
by deepak singh
What is the difference between synchronized block and synchronized keyword ?

Re: What is the difference between synchronized block and synchronized keyword ?

Posted: Thu Oct 06, 2016 4:27 pm
by rameshkhd
Ans). Synchronized block is useful to synchronized a block of statements. Synchronized keyword is
useful to synchronize an entire method.