I know why private and protected are illegal modifiers for a class but why is default not acceptable. I think if we don't specify any access modifier,
default class Student
The default access modifier in Java can be used by just omitting any access modifier. Java 8 introduced a new
default keyword used to provide a default implementation for an interface's method but, despite its confusing name and location in the method's declaration, it has nothing to do with access modifiers.