What is the difference between Synchronizing mehtod &
Synchronizing block?
Answer Posted / anjani kumar jha
In syncronizing block the object is locked.
In Syncronozing the method the method is
locked........means only one at a time only one thread can
use that method.
Thanks and Regards
Anjani Kumar Jha
9623154095
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
What is the purpose of garbage collection in java?
What is the purpose of void class?
How many bytes is a string in java?
How to implement an arraylist in java?
why we use merge option in hybernate pls give a ex snippet
Can we start a thread twice in java?
What are untrusted applets?
Is math an abstract class in java?
Which method returns the length of a string?
What is included in core java?
What is the difference between class & object?
What is the access scope of protected access specifier?
How do you sort a set in java?
What is indexof?