Javarevisited Newsletter

Javarevisited Newsletter

Share this post

Javarevisited Newsletter
Javarevisited Newsletter
Why wait() and notify() are always called from Synchronized context?

Why wait() and notify() are always called from Synchronized context?

javinpaul's avatar
javinpaul
Mar 28, 2024
∙ Paid
7

Share this post

Javarevisited Newsletter
Javarevisited Newsletter
Why wait() and notify() are always called from Synchronized context?
Share

Hello guys, multithreading and concurrency are some of the most important topics for Java interviews and a good knowledge of them goes a long way in receiving a good offer.

In the past few posts, I have shared popular Java interview questions like How ConcurrentHashMap work in Java? Why String is Immutable and What is the difference between List, List<Object> and today, I am going to share another popular Java multithreading interview question, why wait() and notify() methods are called in synchronized context?

From synchronized context, I mean from a synchrnonized method or a synchronized block.

But before that let’s find out what is wait() and notify() method in Java and why are they improtant?

Keep reading with a 7-day free trial

Subscribe to Javarevisited Newsletter to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 javinpaul
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share