Why doesn\'t Java allow private members in interface? Is there any particular reason?
As of Java 8, interfaces can have default methods, and as of Java 9, an interface is allowed to have a private methods which can only be accessed by default methods in the same interface.