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 are the steps involved to create a bean?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
How do you include a string in java?
Write a java program to check if a number is prime or not?
How to retrieve data from database in java using arraylist?
Why are the methods of the Math class are static?
Howmany address lines are required to addressing 1 MB memory?
8 Answers Beatroot Technologies, CSC, HCL, Hexaware, IBM,
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set?
What are format specifiers in java?
What is Java exception handling?
what is polymorphism with example?types of polymorphism?
Explain role of constructor in a java application?