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
Give some features of interface?
Differences between C and Java?
When is the arraystoreexception thrown?
What is the use of parseint in java?
What are the differences between Java 1.0 and Java 2.0?
Explain some best practices you would apply while using collection in java?
how to write a server program and sending the mails to the server using smtp protocol please help me
How do you execute a thread in java?
What should I import for arraylist in java?
What is a boolean output?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
List the different types of classloaders in java.
What is instance means in java?
What is the difference between a vector & an array list?