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
What is public static void main?
How will you invoke any external process in java?
Can long be null in java?
What is the static keyword?
What is the basic difference between string and stringbuffer object?
What are drawbacks of singleton class?
What are the four versions of java?
How do you do math powers in java?
What do you mean by inner class in java? Explain
what is aggregation in java?
What is final, finally, finalize?
What is lifetime variable?
what is collatration?
What is a function in java?
Can you call a method in a method?