+ 1

can you write more than one main() class in a single source file

27th Sep 2019, 1:23 PM
Ganesan C
Ganesan C - avatar
2 ответов
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
27th Sep 2019, 1:54 PM
zemiak
0
Thank you 🤝🤝 Mr zemiak
27th Sep 2019, 2:37 PM
Ganesan C
Ganesan C - avatar