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
What does n mean in java?
What is default locale java?
What is volatile data type?
What an i/o filter?
java program with complete 4 oops concepts implemented example
What is the synonym of procedure?
How can you generate random numbers in java?
What is == mean?
How to perform bubble sort in java?
What is arrays sort in java?
Which browsers work with java?
How do I get a substring?
Can we store variables in local blocks?
Why we use set in java?
How big is a gigabyte?