---
title: "Discussion on \"Few new Features of Java 9\" | Hashnode"
description: "Discussion on \"Few new Features of Java 9\". 🔹 Strong Encapsulation\nBefore Java 9:\n\nIf a class was public, anyone on the classpath could use it — even if it was meant to be internal.\n\nLibraries often had “public by accident” APIs because Java had no way to hide internals beyond package-private..."
url: "https://hashnode.com/posts/few-new-features-of-java-9/68b3f418b8ce8e9ca7dcc821"
---

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

Discussion

# [Few new Features of Java 9](https://jainmohit0807.hashnode.dev/few-new-features-of-java-9?utm_source=hashnode&utm_medium=feed)

🔹 Strong Encapsulation Before Java 9: If a class was public, anyone on the classpath could use it — even if it was meant to be internal. Libraries often had “public by accident” APIs because Java had no way to hide internals beyond package-private...

Aug 31, 2025 · 7 min read · jainmohit0807.hashnode.dev  
Read the article

-   [#jmod](https://hashnode.com/tag/jmod)
-   [#jlink](https://hashnode.com/tag/jlink)
-   [#java](https://hashnode.com/tag/java)
-   [#java9](https://hashnode.com/tag/java9)
-   [#encapsulation](https://hashnode.com/tag/encapsulation)

## Written by

[Mohit jain](https://hashnode.com/@jainmohit0807)

@jainmohit0807

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

Senior Software Developer

Oracle‬‭ Certified‬‭ Java‬‭ Developer‬‭ with‬‭ 7+ years‬‭ of‬‭ experience‬‭ specializing‬‭ in‬‭ backend‬‭ development,‬‭ microservices‬ architecture,‬‭ and‬‭ cloud-based‬‭ solutions.‬‭ Proven‬‭ expertise‬‭ in‬‭ designing‬‭ scalable‬‭ systems,‬‭ optimizing‬‭ performance,‬‭ and‬ mentoring‬‭ teams‬‭ to‬‭ enhance‬‭ productivity.‬‭ Passionate‬‭ about‬‭ building‬‭ high-performance‬‭ applications‬‭ using‬‭ Java,‬‭ Spring‬ Boot, Kafka, and cloud technologies (AWS/GCP)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
