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 / ejp
The lock is released when the holding thread exits the
synchronized block.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of static methods and static variables?
How java uses the string and stringbuffer classes?
What is numeric function?
What is flag in java?
What is the advantage of functional interface in java 8?
What is difference between filereader and bufferedreader?
What do you understand by synchronization?
What is the difference between call by reference and call by pointer?
What is difference between static class and singleton pattern?
What does @override mean?
List some java keywords sun like c, c + + keywords?
What do you understand by the term wrapper classes?
What is static data type in java?
What is the common usage of serialization?
What do you mean by aggregation?