+ 1

What is the difference between main and method?

i am unable to understand

18th Jun 2017, 4:24 AM
Dipk Bhatt
Dipk Bhatt - avatar
2 Answers
+ 6
main is method that use to run (start) java program. method is command that can use again several times.
18th Jun 2017, 4:28 AM
Nithiwat
Nithiwat - avatar
+ 3
The main is a method. If you Litteraly meant 'main', then main would just be the name of the method.
18th Jun 2017, 4:37 AM
Rrestoring faith
Rrestoring faith - avatar