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 is aggregation?

1 Answers   Cap Gemini,


What is slash r?

0 Answers  


what is the Use of throws exception?

2 Answers  


How do weakhashmap works?

0 Answers  


What is the concept of multithreading?

0 Answers  






What is a jagged array in java?

0 Answers  


How u dubugg ur project?

1 Answers   iFlex,


How does multithreading take place on a computer with a single cpu?

0 Answers  


Is it possible to compare various strings with the help of == operator?

0 Answers  


How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }

1 Answers  


how can you say that java is independ language

2 Answers   TCS, Wipro,


Can we declare a constructor as final?

0 Answers  


Categories