What is the difference between synchronized block and synchronized keyword ?

Java related questions and answers
deepak singh
Posts: 686
Joined: Fri Sep 30, 2016 4:19 pm

What is the difference between synchronized block and synchronized keyword ?

Postby deepak singh » Thu Oct 06, 2016 4:26 pm

What is the difference between synchronized block and synchronized keyword ?

rameshkhd
Posts: 1279
Joined: Sun Aug 28, 2016 10:45 am

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

Postby rameshkhd » Thu Oct 06, 2016 4:27 pm

Ans). Synchronized block is useful to synchronized a block of statements. Synchronized keyword is
useful to synchronize an entire method.


Return to “Java”

Who is online

Users browsing this forum: No registered users and 1 guest