Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is mean by thread lock?

Answers were Sorted based on User's Feedback



what is mean by thread lock?..

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

what is mean by thread lock?..

Answer / ravi ranjan

ANSWER- Means particular object can access resources

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain an algorithm to find depth of a binary tree.

0 Answers   Akamai Technologies,


What is a local, member and a class variable?

0 Answers  


What is the difference between the paint() and repaint() methods?

0 Answers  


Is singleton class immutable?

0 Answers  


What is the byte range?

0 Answers  


how to call One constructor from another;

10 Answers   Innodata Isogen,


What are the kinds of polymorphism?

0 Answers  


What is an example of a conditional statement?

0 Answers  


Which keyword specify that a variable is effectively final ?

0 Answers  


What is the use of an interface?

3 Answers  


Can we write multiple catch blocks under single try block?

0 Answers  


What happens if an exception is not handled in a program?

0 Answers  


Categories