+ 1

What happens when we declare two or more main methods

4th Nov 2016, 1:00 PM
gowtham
gowtham - avatar
3 Answers
+ 1
You can only have one main method. Only main method with single String[] (or) String... as param will be considered as entry point for the program. You can only have one entry point in the program.
4th Nov 2016, 1:13 PM
Bozhidar Ivanov
Bozhidar Ivanov - avatar
+ 1
thanks bro
4th Nov 2016, 1:18 PM
gowtham
gowtham - avatar
0
no problem
4th Nov 2016, 1:27 PM
Bozhidar Ivanov
Bozhidar Ivanov - avatar