Thread: some queries
View Single Post
  #5 (permalink)  
Old 11-24-2007, 07:37 PM
staykovmarin staykovmarin is offline
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
Thats because you are required to read them. The Java compiler recognizes that method to be the main method, and starts execution from there.
Code:
public static void main(String arg)
that method will not be recognized by the compiler, and you will get an error if no other main method exists.
Reply With Quote