why outer class cant be declared as static,when we can declare inner class as static. Even though i read in book that outer class cant be declared static, i am unable to understand the exact reason so can any one explain in brief description,
Static means that something belongs to the class it is inside, as opposed to individual instances of that class. So a top-leve class doesn't have a surrounding class to belong to, so it can't be static. That help?