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
ok i agree with u ejp
wat abt this ??
thread invokes wait() method..
is holding remains in synchronized block or it exists.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the importance of join() method in thread class?
What is a class reference?
State the main difference between c++ and java?
What is Hierarchy of exception?
Explain about transient variables in java?
Explain the difference between extends thread vs implements runnable in java?
What is module in project?
Explain access specifiers?
Why inputstreamreader is used in java?
What is the difference between the prefix and postfix forms of the ++ operator?
Which api is provided by java for operations on set of objects?
What does sprintf mean?
What about interrupt() method of thread class ?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
Why we use set in java?