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 |
what are abstract functions?
How to access arraylist elements in java?
How use .contains in java?
Can singleton class be inherited in java?
How to perform bubble sort in java?
If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.
Can a for statement loop indefinitely?
Which class contains a method: cloneable or object?
Can a class be defined inside an interface?
How does enum work in java?
how to create a jar file in java
What is constructor chaining and how is it achieved in java?