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
Why java doesn’t support multiple inheritances?
What is the use of http-tunneling in rmi?
Explain the difference between an Interface and an Abstract class?
Why java is said to be pass-by-value ?
What is matcher in java?
What are the advantages of packages in java?
What is casting in java programming?
What is the full name of java?
Define how does a try statement determine which catch clause should be used to handle an exception?
How is garbage collection controlled?
Can we override protected method in java?
What happens when I use / and % with a negative numerator?
Explain the use of sublass in a java program?
What is formatted output in java?
What are void methods?