Basic and Advance Java Question:

Download Job Interview Questions and Answers PDF

Can a lock be acquired on a class in Java Programming?

Java Interview Question
Java Interview Question

Answer:

Yes, a lock can be acquired on a class. This lock is acquired on the class’s Class object.

Download Java Interview Questions And Answers PDF

Previous QuestionNext 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?