---
title: "Discussion on \"variable shadowing in java\" | Hashnode"
description: "Discussion on \"variable shadowing in java\". shadowing is the practice of using two variable with the same name in a scope that overlaps.\n#lower level variable overrides higher level variable."
url: "https://hashnode.com/posts/variable-shadowing-in-java/666e7024e609cada16a0cf77"
---

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

Discussion

# [variable shadowing in java](https://codeun.hashnode.dev/variable-shadowing-in-java?utm_source=hashnode&utm_medium=feed)

shadowing is the practice of using two variable with the same name in a scope that overlaps. #lower level variable overrides higher level variable.

Jun 16, 2024 · 1 min read · codeun.hashnode.dev  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#java](https://hashnode.com/tag/java)

## Written by

[Ashish Rai](https://hashnode.com/@ashish131)

@ashish131

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

learning and exploring..

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
