dcsimg

Can a Java class be static?

John Mitchell

Yes and no. The static modifier is only applicable to so-called member classes -- i.e., classes which are directly enclosed within another class. For more information, check out sections 8.5 and 9.5 in the JLS (second edition).