---
title: "Discussion on \"Remember to use \"break\" in switch\" | Hashnode"
description: "Discussion on \"Remember to use \"break\" in switch\". Prevent from falling into unexpected case and execute the case statements"
url: "https://hashnode.com/posts/remember-to-use-break-in-switch/661b5fd89e39bedf8de9cb85"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Remember to use "break" in switch](https://ivanyu2021.hashnode.dev/remember-to-use-break-in-switch?utm_source=hashnode&utm_medium=feed)

Prevent from falling into unexpected case and execute the case statements

Apr 14, 2024 · 2 min read · ivanyu2021.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#switch-case](https://hashnode.com/tag/switch-case)
-   [#bugfix](https://hashnode.com/tag/bugfix)

## Written by

[Ivan Yu](https://hashnode.com/@ivanyu2021)

@ivanyu2021

  
[View profile](https://hashnode.com/@ivanyu2021)

Programming

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
