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
Explain the polymorphism principle?
What is the synonym of procedure?
What is :: operator in java 8?
Explain about wait() method?
What does localhost mean?
What is singleton class example?
Name component subclasses that support painting in java programming?
Can a top level class be private or protected?
What is hashtable and explain features of hashtable?
What is your platform?s default character encoding and how to know this?
How to create a thread in java?
Are arrays passed by reference in java?
What is the symbol for space?
What is bytecode in java ?
What are different data structures in java?