Few new Features of Java 9
🔹 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...
jainmohit0807.hashnode.dev7 min read