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
How do you define a method?
How thread scheduler schedule the task?
Detail discussions on JVM, memory management and garbage collector.
What access modifiers can be used for variables?
What do you understand by abstract classes?
What is intern method in java?
Explain the use of javap tool.
Explain exception chaining in java?
What is the use of jtable?
How do you make an arraylist empty in java?
Can we store variables in local blocks?
What is use of static method?
What is use of valueof () in java?
Is age discrete or continuous?
What is the difference between a method and a procedure?