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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java thread dump, how can we get java thread dump of a program?

569


What is an inner class in java?

523


What is percentage in java?

569


what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

484


Can we have a method name same as class name in java?

578






What is a Hash Table? What are the advantages of using a hash table?

603


What is an 8 bit word?

590


Explain java code for recursive solution's base case?

570


What is the difference between ArrayList and Vector? which one is better in Java

603


What is a list in java?

502


If an object is garbage collected, can it become reachable again?

540


What is the difference between heap memory and stack memory?

613


What is the gregoriancalendar class in java programming?

566


What do you mean by ternary operator in java?

556


what is inner class in java?

622