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

Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?

3 Answers   Four soft,


What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?

2 Answers  


Why Java is not purely object oriented?

50 Answers   Elitecore, Persistent, Reliance, Wipro,


How will you initialize an Applet?

0 Answers  


Iterator in the HashMap is fail-safe means what?

9 Answers   CTS, IBM, Subex,






what is diffrence between .NET and java?

2 Answers  


what is difference between length and length()?

8 Answers  


Why string is a class?

0 Answers  


What are the advantages of unicode?

0 Answers  


why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?

3 Answers  


What is a parameter in java?

0 Answers  


what do you mean by marker interface in java?

0 Answers  


Categories