What is the difference between static synchronize() metod
and synchronize() method?

Answer Posted / suresh m

Non static synchronized method enables Object's Object Lock for the given Thread
while static synchronized method enables Class's Class Lock for given Thread

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is passing by reference in java?

535


What is sortedmap interface?

550


What is nullpointerexception in java?

522


What does math floor () do?

548


How many bytes is double?

547






What does jre stand for?

602


Difference between operator overloading and function overloading

607


Are arrays static in java?

578


What is the difference between static method and instance method in Java?

564


Explain an algorithm to find depth of a binary tree.

546


Discuss about garbage collector in Java.

640


Explain the features of interfaces in java?

554


Does list allow duplicates in java?

514


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

588


Explain notify() method of object class ?

608