What is the difference between the synchronized() & static
synchronized()?
Answer Posted / 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 |
Post New Answer View All Answers
What is a java string?
Is null false in java?
Can you sort a string in java?
What is regex used for?
What is the list interface?
how are methods defined?
What is a void method java?
What is the use of System class?
Explain differences between checked and unchecked exceptions in java?
What is the final variable?
What is the statements?
Can a method be static?
What is yield () in java?
What is Java Shutdown Hook?
Can final class have constructor?