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



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

Answer / 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

More Core Java Interview Questions

How does sublist works in java?

0 Answers  


What are void pointers?

1 Answers  


What are the properties of thread?

0 Answers  


What Is Query Throttling in java?

0 Answers   HCL,


What are the advantages of inner classes?

0 Answers  






How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

0 Answers  


How do you convert int to char in java?

0 Answers  


What is the best way to findout the time/memory consuming process?

0 Answers  


What is join () in java?

0 Answers  


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

0 Answers  


How does hashmap work in java ?

0 Answers  


Is 0 a prime number?

0 Answers  


Categories