Top-level classes (classes that are not nested classes) cannot be made
static.
silamala ramesh babu wrote:But what my doubt is why java doesn't support static class.
Suppose that it would be possible to make a top-level class
static. What would you expect that that would mean? Java doesn't support it because it doesn't mean anything to make a top-level class
static.