+ 1
is it possible to rename the "main" ?
3 Respuestas
+ 1
In fact no! main is a reservery keyword and it is very important to use it in that type mode. So you are not allowed to rename it. Simple Answer No, Reason, Specification is like that, JVM will only look for main and not any custom name as the starting point. It has to be called main with the exact signature public static void main(String[] args)
+ 1
mo76rv great answer. Main is the entry point.
+ 1
Yes you can always rename as long as you can customize JVM. But then it will loose tech or platform agnostic feature