+ 2
can we declare the main method as final?
4 Answers
+ 1
i meant so that it cannot be overridden
0
No. JVM wouldn't be able to locate the main method if it's not public since the JVM is outside the default package.
0
What I said still stands, no FINAL on main.main method can not be overridden either. It is static after all.
0
no