Can we use any other word instead of main in the line: public static void main (String []args) as main is not a keyword? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 15

Can we use any other word instead of main in the line: public static void main (String []args) as main is not a keyword?

3rd Jul 2020, 6:48 PM
💖Miss Angelic💖
💖Miss Angelic💖 - avatar
2 Answers
+ 7
No, it is the main method that tells the compiler from where to start the execution of program.
3rd Jul 2020, 6:54 PM
Hardik Sharma
Hardik Sharma - avatar
+ 10
Thanks
3rd Jul 2020, 7:08 PM
💖Miss Angelic💖
💖Miss Angelic💖 - avatar