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 array size in java?
Can constructor be protected in java?
What do you mean by multithreaded program?
what is difference betweem home interface and remote interface?
How to create a custom exception?
What is a byte array?
What are the Static and Dynamic Variables? Differentiate them.
Why we use methods in java?
How do you create a method in java?
What is udp in java?
How is java hashmap implemented?
Why do people says “java is robust”?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
What is a for loop in java?
Name some OOPS Concepts in Java?