What is the difference between the synchronized() & static
synchronized()?
Answers were Sorted based on User's Feedback
Answer / namrata
when a Thread enters a static synchronized method of a
given class, then no other Thread can enter another static
synchronized method of that class. But other threads might
execute any non-synchronized method, or a synchronized
instance method.
Is This Answer Correct ? | 6 Yes | 3 No |
Is alive method in java?
What is the importance of main method in Java?
What is java class writing rules?
Howmany classes that package java.applet.* contains?
What is user defined exception in Java?
What are the main uses of java?
What is the latest java version?
What are Font and FontMetrics classes?
How do you convert an int to a double in java?
What is a vararg?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
How to retrieve data from database in java using arraylist?