+ 1

is it possible to rename the "main" ?

5th Aug 2016, 8:44 AM
Ryzelle Leal
Ryzelle Leal - avatar
3 odpowiedzi
+ 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)
5th Aug 2016, 10:29 AM
Mohammad
+ 1
mo76rv great answer. Main is the entry point.
5th Aug 2016, 2:36 PM
‎‏‎‏‎Joe
‎‏‎‏‎Joe - avatar
+ 1
Yes you can always rename as long as you can customize JVM. But then it will loose tech or platform agnostic feature
5th Aug 2016, 7:50 PM
Praveen