What is the difference between Synchronizing mehtod &
Synchronizing block?

Answer Posted / anjani kumar jha

In syncronizing block the object is locked.
In Syncronozing the method the method is
locked........means only one at a time only one thread can
use that method.


Thanks and Regards
Anjani Kumar Jha
9623154095

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Garbage collection in java?

693


What is the relationship difference the canvas class and the graphics class?

669


how to deploy apache tomcat server to weblogic server in java

1684


Explain java coding standards for interfaces?

736


In how many ways we can create threads in java?

725






What is a null check?

629


Why inputstreamreader is used in java?

644


What is the abstract class?

672


What does sizeof return?

638


What does system.gc() and runtime.gc() methods do?

702


what is recursion in java

681


Can we declare the main method of our class as private?

646


Explain the difference between arraylist and linkedlist in java?

583


What is class??

850


What is tcp and udp?

688