0

why computer reads from main??

6th Oct 2016, 9:24 AM
kalidas pardhi
kalidas pardhi - avatar
2 Respostas
+ 2
It is supposed to be done. If there is no such indicator like main function, how compiler knows where to begin?
6th Oct 2016, 12:30 PM
Kim MinKwan
Kim MinKwan - avatar
+ 2
Main method is a special method, is the entrance of the program execution, a Java program from the main method begins execution. Java virtual machine prior before assigning a thread to execute Java program, and our main method is executed by the primary thread.And it's ok not understand it.Just go on.
6th Oct 2016, 2:16 PM
马杰
马杰 - avatar