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

What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

0 Answers  


What are the super most classes for all the streams?

5 Answers  


How does hashmap work in java ?

0 Answers  


what is difference between interface and abstract class..?

4 Answers  


How can I become a good programmer?

0 Answers  


Explain importance of inheritance in java?

0 Answers  


How to access a method that it declared as protected?

3 Answers  


What is the do while loop syntax?

0 Answers  


what is the use/perpose of having a method antive?

2 Answers  


What is the difference between jfc & wfc?

0 Answers  


What are the features in java?

0 Answers  


Why you should not use singleton?

0 Answers  


Categories