This is related to threads. I have a class with synchronized
method m1(). Can I create different instances of this class
and execute the m1() for different threads?
Answer Posted / shashidhar
When a thread enters the Synchronized method the object on
this the method is called gets locked so no other thread
cannot cal that or any other method on same object.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Can vector have duplicates in java?
What are mutable classes?
What is numeric function?
Can we access the non-final local variable, inside the local inner class?
What is an immutable object?
What is the difference between length and length () in java?
What is meant by class?
what is thread? What are the high-level thread states? : Java thread
What does %d do in java?
Can an abstract class be a final class?
What is number data type in java?
What is incompatible types in java?
Can the garbage collection be forced by any means?
What is the symbol for line break?
What is the difference between variable & constant?