Dear gulshan(01.2.07 @ 15:51pm | #2420
),
u aske,
February 13, 2007 at 2:06 PM
Dear gulshan(01.2.07 @ 15:51pm | #2420 ), u asked... why we write static in main.
public static void main(string agrs[])
the solution to this question is we can have multiple functions named main in our program of java but the function whichn is having a static is considered as tha main function and exicution statrs from there. we cannot have more than 1 static main function as it will result in a compilation error.
View All Comments
| View Tutorial