Why do you use synchronized block in java?

Java

1 answer

Answer

1279810

2026-04-20 21:20

+ Follow

A Synchronized block is a block of code enclosed by the {} braces that has a synchronized keyWord before it. This block of code is similar to a synchronized method and only one thread can access it at a time.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.