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

How do you use nextline in java?

0 Answers  


what are the design patterns in struts?

1 Answers  


What is a “stateless” protocol ?

0 Answers  


What is slash r?

0 Answers  


How many bytes is a string?

0 Answers  






What makes a function well defined?

0 Answers  


What is the benefit of abstract class?

0 Answers  


What is the difference between compiler and jvm?

0 Answers  


Describe method overriding

0 Answers  


What is the difference between iterator and enumeration ?

0 Answers  


Can we override private constructor in java?

0 Answers  


What is the latest java version?

0 Answers  


Categories