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 do we need wrapper classes?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Where is const variable stored?
How do you override a method in java?
Do I need java on my pc?
What is Mutex (Mutual Exclusion Object) ?
What is difference between arraylist and list in java?
Which java ide is used the most?
How do you differentiate abstract class from interface?
What are streams in java 8?
What is methodological framework?
What are the characteristics of Final,Finally and Finalize keywords.
What is lambda programming?
Which of the classes will have more memory allocated?
If try block is successfully executed, Then Is Finally block executed?