Jasper Reports Developer Question:
Download Questions PDF

What when a thread cannot acquire a lock on an object in Java Programming?

Answer:

If a thread attempts to execute a synchronized method or synchronized statement and is unable to acquire an object's lock, it enters the waiting state until the lock becomes available.

Download Jasper Reports Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Please explain the difference between Font and FontMetrics classes in Java Programming?Suppose if a class is declared without any access modifiers, where may the class be accessed in Java Programming?