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 can u apply shallow cloning and deep cloning to create object?

1 Answers   Yash Technologies,


There are 2 different ways to create an object. a)By using keyword "new" b)By using Class.forName ("className").newInstance(); What is the difference between these 2 methods.

3 Answers  


What is unicode full form?

0 Answers  


what is polymorphism?

4 Answers  


What is parameter tag and what is its use?

1 Answers  






What two classes are used to read data only?

0 Answers   TryTechnicals Pvt Ltd,


Why should we create an object? what is a need of it? Apart from access members of a class i want what is a need of object what does it contain?? In normal class to access any member of thaht class we create object where as for static class we access its members using class name. what is a difference between them... thanks in advance.

1 Answers  


Highest level event class of the event-delegation model?

0 Answers  


what is the use of private constructor in core java?

3 Answers   OnMobile, Satyam, Yash Technologies,


How can a gui component handle its own events in java programming?

0 Answers  


What is file class and what is its purpose?

1 Answers  


Why stringbuilder is not thread safe?

0 Answers  


Categories