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 is Java Package and which package is imported by default?
What is the difference between a local variable and an instance variable?
Can we define private and protected modifiers for variables in interfaces?
How the elements are organized in CardLayout?
What comes to mind when someone mentions a shallow copy in java?
What is the difference between class forname and new?
Is call by reference possible in java?
What is threaded programming and when is it used? : Java thread
Is string thread safe in java?
Under what circumstances an object reference be cast to an interface reference?
What is parsing in java?
What is the use join() in Threads ?