---
title: "Discussion on \"Static Fields in Inner Classes? Yes, You Can (Since Java 16)\" | Hashnode"
description: "Discussion on \"Static Fields in Inner Classes? Yes, You Can (Since Java 16)\". Explore the updated Java 16 feature that allows static fields in non-static member and local classes, improving efficiency and simplifying code logic"
url: "https://hashnode.com/posts/java-static-fields-in-inner-classes/68ae45b27a9e8dd910b9e8fa"
---

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

Discussion

# [Static Fields in Inner Classes? Yes, You Can (Since Java 16)](https://ejjung.hashnode.dev/java-static-fields-in-inner-classes?utm_source=hashnode&utm_medium=feed)

Explore the updated Java 16 feature that allows static fields in non-static member and local classes, improving efficiency and simplifying code logic

Aug 26, 2025 · 7 min read · ejjung.hashnode.dev  
Read the article

-   [#static-field](https://hashnode.com/tag/static-field)
-   [#member-class](https://hashnode.com/tag/member-class)
-   [#local-class](https://hashnode.com/tag/local-class)
-   [#java](https://hashnode.com/tag/java)
-   [#static](https://hashnode.com/tag/static)
-   [#java16](https://hashnode.com/tag/java16)
-   [#inner-classes](https://hashnode.com/tag/inner-classes)
-   [#nested-class](https://hashnode.com/tag/nested-class)

## Written by

[EJ Jung](https://hashnode.com/@ejjung)

@ejjung · Bellevue, WA

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
