what is the main differene between synchronize() method and
Synchronize{}block?

Answer Posted / rupak

Synchronize{}block is use to Synchronize the block of
statements.
synchronize() keyword is useful to synchronize an entire method.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the relationship between clipping and repainting under awt?

619


Is space a string in java?

515


Who is the owner of java?

545


What is treemap in java?

557


Can we write any code after throw statement?

613






What are different types of references?

536


What is tree in java?

493


Is jdk required on each machine to run a java program?

759


How does a cookie work in Servlets?

356


What is args length in java?

669


How do you add an element to a set in java?

502


Is null a keyword in java?

559


How many decimal places is a double?

543


In how many ways we can create threads in java?

636


Why is string buffer better than string ?

605