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
Throwing the exception exits the synchronized{} block so
that answer doesn't actually add anything.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is there is any difference between a scrollbar and a scrollpane?
Explain Basics of OOP Language in java
What is an image buffer?
How can we create objects if we make the constructor private ?
What are class types in java?
What is substring 1 in java?
How the interruptible method gets implemented?
What are heterogeneous objects?
Define locale.
Is it possible to write a regular expression to check if string is a number?
Why can't you declare a class as protected?
Explain the public class modifier?
Can vector have duplicates in java?
Is stringwriter thread safe?
What about method local inner classes or local inner classes in java?