DEVFYI - Developer Resource - FYI

What if the static modifier is removed from the signature of the main method?

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

477. What if the static modifier is removed from the signature of the main method?

Program compiles. But at runtime throws an error "NoSuchMethodError".

(Continued on next question...)

Other Interview Questions