+ 4
what is "main" really
what is "main() " ???
6 odpowiedzi
+ 22
After viewing this code your problem will be resolved
https://code.sololearn.com/cxQRlmdcY73I/?ref=app
+ 14
https://code.sololearn.com/cZUCx2veJX3k/?ref=app
+ 8
main() is the method that the JVM uses to start execution of a Java program.
First off, it's important for you to know that naming a method main() doesn't give it the superpowers we normally associate with main(). As far as the compiler and the JVM are concerned, the only version of main() with superpowers is the main() with this signature:
public static void main(String[] args)
class Example{
// A Java program begins with a call to main().
public static void main(String[] args){
System.out.println("code = coffee
+ developer");
}
}
https://en.wikipedia.org/wiki/Entry_point
+ 6
A starting point of your program
In a thousand lines of codes and several files, surely your program need to know where to start
+ 6
big thk to all
+ 6
Kevinstone 👍Welcome! 😉
I'm glad if I helped! 😊