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

What modifiers can be used with a local inner class?

2 Answers  


What is the purpose of tostring() method in java?

0 Answers  


What is a container in a gui?

0 Answers  


When parseint method can be used?

0 Answers  


Is Constructor possible in abstract class in java ?

0 Answers   HCL,


What is main function purpose?

0 Answers  


hoe can u call a constructor of a private classs to other inherited claa??

1 Answers  


What is Ideal Design of Class?

2 Answers  


Why is multithreading important?

0 Answers  


What is a stream? what are the different types and classes of Streams?

2 Answers  


Why is String immutable?

0 Answers   Atos Origin,


What is the exact difference in between Unicast and Multicast object?

0 Answers  


Categories