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
Which is the class in java?
What is the differences between heap and stack memory in java? Explain
How do generics work in java?
Is main an identifier?
What is stream api in java8?
How to find the largest value from the given array.
Which is illegal identifier in java?
What does java stand for?
how to open and edit XML file in Weblogic???
Can we have a method name same as class name in java?
Is it possible for yielded thread to get chance for its execution again ?
What is a boolean used for?
explain autoboxing in java?
Difference between process and thread?
How does hashset works in java?