Have difference between the function main in C and the method main in Java? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Have difference between the function main in C and the method main in Java?

15th Aug 2016, 11:53 PM
Marcos Guimarães
Marcos Guimarães - avatar
3 Antworten
+ 3
in java, you notice that in the hole program you only have 1 main method. the main method's role in java is to know where to start reading your code. let's say it is the start life of executing your code
16th Aug 2016, 12:57 AM
Rayen Ochi
Rayen Ochi - avatar
+ 2
nope...the working of main method is same in any language.. programme execution starts from main it's just the writing style I.e. syntax is different.
16th Aug 2016, 5:33 AM
Manisha Bandagi
Manisha Bandagi - avatar
0
Thank u Rayen!
16th Aug 2016, 1:37 AM
Marcos Guimarães
Marcos Guimarães - avatar