+ 1

Why Java uses main method to run source code ?

I have used the following code to run Java....it ran in BlueJ but it is not running in any other IDE....why it happens....? please check the URL to get code... https://code.sololearn.com/ckBa0pAgTsR9/?ref=app

10th Apr 2017, 10:38 AM
Satyam Anand
Satyam Anand - avatar
1 Answer
+ 12
You have to remove String[]args to make it runnable everywhere!:D
10th Apr 2017, 11:59 AM
Dev
Dev - avatar