-
Can I have multiple Main () methods in the same class 2024?
main
main can have
Questioner:Julian Turner 2023-06-09 06:42:31
The most authoritative answer in 2024
-

-
Benjamin Lopez——Works at the International Air Transport Association, Lives in Montreal, Canada.
'
main' means public static void
main(String[] args) which is entry point in java programs . You
can have more
classes that contain the
main() in a program . And you
can choose to execute one
class or another
class. But you
can't
have more than one main method (String[] args as arguments) within
same class.
read more >>
About “main、main、can have”,people ask:
QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.