All members must be explicitly specified as static, static class does not automatically make its members static. Static class can contain a collection of static methods.
The definition explains all i.e we need to explicitly give static for methods , members etc inside static class .
What i really didn't get here is if there is a rule like we can declare only static members inside a static class
why doesn't the developer of OOPL make it not mandate . so the compiler should understand(internally) i.e even if we declare a non-static method inside a static class it should understand the method as static (i.e static class can only have static methods) .
I got this doubt when i am working on interfaces see even in case of interfaces all interfaces members are public so we don't declare then public explicitly compiler will understand internally .
All i am looking is for a big WHY not for excuses(it should be like that , its in-build functionality).