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



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

Answer / 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

More Core Java Interview Questions

Why object class is super class for every class in java?

0 Answers  


Is 0 an even number?

0 Answers  


What is int lol?

0 Answers  


What does math floor () do?

0 Answers  


Explain the difference between jvm and jre?

0 Answers  






What is an object in Java and what are its benefits?

4 Answers   IBM,


How will you get the platform dependent values like line separator, path separator, etc., ?

0 Answers  


What is meant by data hiding/encapsulation?

0 Answers   Cyient,


Why set is used in java?

0 Answers  


How can you eliminate duplicates?

2 Answers  


What is class and object in java?

0 Answers  


Which is better 64 bit or 32 bit?

0 Answers  


Categories