0
Cant we change the main in main method
can we write public static void text(strings []args)
2 odpowiedzi
+ 1
No, main is the entry point. Without it, the program won't know where to start! As the Java language specification says,
"The Java Virtual Machine starts execution by invoking the method main of some specified class, passing it a single argument, which is an array of strings."
https://docs.oracle.com/javase/specs/jls/se7/html/jls-12.html#jls-12.1
0
read this short article/guide, which will show you all the posibilties and rulings
https://www.google.nl/amp/s/www.journaldev.com/12552/public-static-void-main-string-args-java-main-method/amp