B
A method-local inner class cannot be made public or static .
publicclass MainClass {
publicstaticvoid main(String[] argv) {
staticclass A{
}
}
}
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Illegal modifier for the local class A; only abstract or final is permitted
at MainClass.main(MainClass.java:4)