Jasper Reports Developer Question:

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

Jasper Reports Developer Interview Question
Jasper Reports Developer Interview Question

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.


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?