Few new Features of Java 9
Aug 31, 2025 · 7 min read · 🔹 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...
Join discussion