---
title: "What is the purpose of Synchronized block?"  
description: "What is the purpose of Synchronized block?"  
author: "Anonymous User"  
published: 2015-05-07  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/2499/what-is-the-purpose-of-synchronized-block  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is the purpose of Synchronized block?

- Synchronized block is used to lock an object for any shared resource.
- Scope of synchronized block is smaller than the method.

## Answers

### Answer by Anonymous User

- Synchronized block is used to lock an object for any shared resource.
- Scope of synchronized block is smaller than the method.


---

Original Source: https://www.mindstick.com/interview/2499/what-is-the-purpose-of-synchronized-block

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
