can we create static class in Java web application?

Abh*_*jit 1 java servlets

I am trying to create static class in Java Web Application using eclipse. but it says

Illegal modifier for the class ClassName; only public, abstract & final are permitted
Run Code Online (Sandbox Code Playgroud)

can we create static class in web application ? if no why ?

Mar*_*Łoś 5

No, because there are no static top-level classes in Java.