Earlier quoted context omitted.
Did you know that Java lets you any number of module scoped classes in a single file, just that the public class has to have the same name as the file? There are a lot of things like that you can do in Java which people just don't do that makes many things a lot cleaner. Its just that the eco system standards were set by people who thought that having unique class names were super important even though Java already h…
> There are a lot of things like that you can do in Java which people just don't do that makes many things a lot cleaner. The problem is not "people could use that particular Java feature to make code cleaner, but they don't". The problem is on a higher-level: If you have ever tried to read your way through some library, e.g. Spring, you'll see code spread over hundreds of files, and it takes ages to just find out wh…
There is nothing about Java the language which forces code to be written this way though.