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
What is a class variable?
Is array synchronized in java?
What is a ?
What are the drawbacks of reflection?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What are peerless components?
What is jrmp?
What does nullpointerexception mean?
What is data type modifier?
How to set the permissions to a file in java?
How do you use compareto method?
What is thread pool in java with example?
Can we override tostring method in java?
What is classpath?
When does an object becomes eligible for garbage collection in java?