What if the static modifier is removed from the signature of the main method?
Program compiles. But at runtime throws an error “NoSuchMethodError”.
Explore posts in the same categories: Java Interview Questions