DEVFYI - Developer Resource - FYI

Can main method be declared final?

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

560. Can main method be declared final?

Yes, the main method can be declared final, in addition to being public static.

(Continued on next question...)

Other Interview Questions