Can a class be declared as static? Ans.We can not declare top level class as static, but only inner class can be declared static. public class Test { static class InnerClass { public static void InnerMethod() { System.out.println("Static Inner Class!"); ...
See more
Download the Study24x7 App, so you can connect and collaborate.