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 / ravikiran
The lock will be released & allocation depends on the scheduler
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
How is string immutable in java?
Why is multiple inheritance not supported in java?
What do you mean by an interface in java?
What is difference between protected and private?
Can inner class extend any class?
What is java life cycle?
Is nullpointerexception checked or unchecked?
Why arraylist is used in java?
Can we execute a program without main() method?
What is function and its uses?
What is stack explain?
What is an infinite loop in java? Explain with an example.
What do you know about the garbage collector in java?
Write a program to find the whether a number is an Armstrong number or not?
What is the main difference between java platform and other platforms?