what is mean by thread lock?
Answers were Sorted based on User's Feedback
Answer / maninder kaur
thread locking is achieve by synchronized keyword.
for eg...
public synchronized void disp()
{
}
or
public void disp()
{
synchronized(this)
{
}
}
it makes a lock on disp method until we comes to the end of the block.
so that no other thread can modify it.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / ravi ranjan
ANSWER- Means particular object can access resources
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the USE of Null interfaces ??...if thers nothing inside these interfaces how are they used and WHy are they used ???? No 1 has given a proper description yet
What causes memory leak in java?
Why collection is called framework in java?
Is object a data type in java?
Can singleton class be serialized?
What is difference between call by value and call by reference?
Explain what pure virtual function is?
Describe method overriding
What is a finally block? Is there a case when finally will not execute?
Explain what access modifiers can be used for variables?
5 What is Java exception handling?
What do you meant by active and passive objects?