View Single Post
  #1 (permalink)  
Old 07-31-2007, 05:22 AM
lenny lenny is offline
Member
 
Join Date: Jul 2007
Posts: 40
lenny is on a distinguished road
The main method in java...
Hi, I know that in C and Java the program control starts from the main method..
But can anybody explain
  1. Why is that the main method is the starting of program
  2. Why is that the main method is given preference over any other methods??
  3. Why is it named as main method?
  4. How does the compiler knows that main method is the starting?
  5. What is the compiler process(program) to identify uniquely the main method
Thanks.
Reply With Quote
Sponsored Links