Java – where to call public static void main?

I just want to know where our main methods are called

Solution

It is specified in the Java language specification, 12.1:

"The Java virtual machine starts execution by calling the method main of a specified class and passing a parameter, which is a string array"

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>