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

What is the is a and has a relation ship in oops concept in java?

9 Answers   BearingPoint, TCS,


Give an example of use of pointers in java class.

0 Answers  


why top level class could not be static

3 Answers   L&T,


How many bits does a boolean take?

1 Answers  


Is break statement can be used as labels in java?

0 Answers  






2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

0 Answers   RBS, TCS,


Explain runtime exceptions?

0 Answers  


State differences between C and Java?

0 Answers   Deloitte, JPMorgan Chase,


what is jms? features of jms

2 Answers   CTS,


How do you clear a method in java?

0 Answers  


How do you create a first line indent?

0 Answers  


What is data object example?

0 Answers  


Categories