Basic and Advance Java Question:
Can a lock be acquired on a class in Java Programming?
Answer:
Yes, a lock can be acquired on a class. This lock is acquired on the class’s Class object.
Previous Question | Next Question |
What are three ways in which a thread can enter the waiting state in Java Programming? | What’s new with the stop(), suspend() and resume() methods in JDK 1.2? |