+ 1
can you write more than one main() class in a single source file
2 Answers
0
one class is public and it's main(String[] args) is the only main entry to execute.
This class can have other main() with different parameters type
Other classes can have main() methods as the name for normal method
0
Thank you đ€đ€ Mr zemiak