Java lock

Ads

 
 

Share on Google+Share on Google+

neelam
Java lock
1 Answer(s)      6 years and 11 months ago
Posted in : Java Interview Questions
Can a lock be acquired on a class?
Ads
View Answers

October 18, 2010 at 1:08 PM


Hi,

A lock is a tool for controlling access to a shared resource by multiple threads.Yes, a lock can be acquired on a class. This lock is acquired on the class?s Class object.

Thanks,


Ads









Related Tutorials/Questions & Answers:
Java lock
Java lock  Can a lock be acquired on a class
Java lock
Java lock  Can a lock be acquired on a class
Advertisements
Java lock file or folder.
Java lock file or folder.  Is it possible to create a desktop application to lock or encrypt file or folder in windows by using java code?? if possible can provide some reference?? because i can't find it... thanks
Java object's lock
Java object's lock  What is an object's lock and which object's have locks
Java thread lock
Java thread lock  What happens when a thread cannot acquire a lock on an object
Version of com.deftlabs>mongo-java-distributed-lock dependency
List of Version of com.deftlabs>mongo-java-distributed-lock dependency
Java file lock
Java file lock In this section, you will learn how to lock a file. The behavior of the file lock is platform-dependent. The file lock is advisory on some... by using the New I/O API (nio). Java provides lock and tryLock() methods
Maven Dependency mongo-java-distributed-lock >> 0.1.0
You should include the dependency code given in this page to add Maven Dependency of com.deftlabs >> mongo-java-distributed-lock version0.1.0 in your project
Maven Dependency mongo-java-distributed-lock >> 0.1.1
You should include the dependency code given in this page to add Maven Dependency of com.deftlabs >> mongo-java-distributed-lock version0.1.1 in your project
Maven Dependency mongo-java-distributed-lock >> 0.1.4
You should include the dependency code given in this page to add Maven Dependency of com.deftlabs >> mongo-java-distributed-lock version0.1.4 in your project
Maven Dependency mongo-java-distributed-lock >> 0.1.6
You should include the dependency code given in this page to add Maven Dependency of com.deftlabs >> mongo-java-distributed-lock version0.1.6 in your project
How to make one waiting thread for lock - Java Beginners
to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level
lock on a class
lock on a class  hello, Can a lock be acquired on a class?   hiii,, Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object
difference between lock and synchronization
difference between lock and synchronization  Hi, I am new in java please anyone tell me difference between lock and synchronization in java. its urgent. Thank in advance   Please visit the following link: Lock
Version of com.auth0>lock dependency
List of Version of com.auth0>lock dependency
Version of com.auth0>lock-facebook dependency
List of Version of com.auth0>lock-facebook dependency
Version of com.auth0>lock-googleplus dependency
List of Version of com.auth0>lock-googleplus dependency
Version of com.auth0>lock-sms dependency
List of Version of com.auth0>lock-sms dependency
Java Thread HoldsLock
Java Thread HoldsLock In this tutorial, you will learn how to lock a thread with example in Java. Thread HoldsLock  : It is easy to use...): This method returns true if the current thread holds the monitor lock
Maven Dependency lock >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.auth0 >> lock version1.0.0 in your project
What is an object's lock and which object's have locks?
What is an object's lock and which object's have locks?   Hi, What is an object's lock and which object's have locks? Thanks
Maven Dependency lock-facebook >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.auth0 >> lock-facebook version1.0.0 in your project
Maven Dependency lock-googleplus >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.auth0 >> lock-googleplus version1.0.0 in your project
Maven Dependency lock-sms >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.auth0 >> lock-sms version1.0.0 in your project
Version of com.anbillon>android-lock-pattern-view dependency
List of Version of com.anbillon>android-lock-pattern-view dependency
Lock while inserting/updating database in multithreaded.
Lock while inserting/updating database in multithreaded.  Hi, I am having a multithreaded process which replicates the data from many table to one table. My process runs on 4 threads and all are having different connection
Maven Dependency android-lock-pattern-view >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.anbillon >> android-lock-pattern-view version1.0.0 in your project
JAVA Method Wait
JAVA Method Wait       The Wait method in Java hold the thread to release the lock till... understand a code that helps you to understand  Java method Wait.In this Tutorial
java program - Java Interview Questions
java program  i want information of locks in java ? 1.what is a class lock? 2.what is method lock? 3.what is a object lock? i want some code and dicreption of these?plz replyyyyyyyyyyyy  Hi Friend, A lock
Synchronized with example - Java Beginners
Synchronized with example  Hi Friends, I am beginner in java. what i... 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
Java Interview Questions - Page 4
Java Interview Questions - Page 4   ... executes a synchronized method after it has acquired the lock for the method's... the lock for the object or class referenced in the synchronized statement