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 |
How do you convert int to char in java?
What is thread start?
What is abstract class? Explain
Explain the scope of a variable.
Can a class with private constructor be extended?
How do I find and replace in word?
can anyone explain me the concept of autoboxing?
when everything can be done by static block then why do we use main method?.
What are the advantages of java?
What is a class component?
Can long be null in java?
Does string is thread-safe in java?