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
How do you convert an int to a double in java?
What is string buffer?
What is the base class of all classes?
What is ctrl m character?
What are features of java?
Explain the importance of join() method in thread class?
How do you create a method in java?
How many types of design patterns are there?
How does compareto method work?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
Which methods cannot be overridden in java?
What is anti pattern in java?
What two classes are used to read data only?
Does list allow duplicates in java?
Why is static used?