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

Can an interface implement another interface?

0 Answers  


What is data type in computer?

0 Answers  


Explain the scope or life time of class variables or static variables?

0 Answers  


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

0 Answers  


Explain how to force the garbage collection in java.

0 Answers  


When we serialize an object does the serialization mechanism saves its references too?

0 Answers  


How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size

6 Answers   Accenture,


Why parameters should be passed by reference?

0 Answers  


What is meant by class loader and how many types are there?

2 Answers   Apple,


What is the exact difference in between Unicast and Multicast object? Where will it be used?

0 Answers  


Define an applet in java?

0 Answers  


What is the file extension for java?

0 Answers  


Categories