Hi Friends, I am beginner in java. what i know about
synchonized keyword is,If more that one 1 thread tries to
access a particular resource we can lock the method using
synchronized keyword. Then after that how the lock is
released and how next thread access that.Please explain with
example.
Answer Posted / jitu
The lock is released when the holding thread exits the
synchronized block or an exception is occurred in execution.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you escape a string?
Is java good for beginners?
Explain different types of thread priorities ?
How do constructors use this() and super()?
Explain wait(), notify() and notifyall() methods of object class ?
Is java developer a good career?
Which is better ascii or unicode?
What is the difference between declaration and definition in java?
What is an infinite loop?
What are the loops in java?
Is empty set an element of empty set?
What is java ceil?
What is 16 bits called?
What is serial version uid and its importance in java?
What is the symbol for average?