public class Simple{public static void main(){System.out.println("My Main");} public static void main(String args[]){ Simple.main();}} When you run this program your runtime calls main methodwith string arguments first and then calls the main methodwithout arguments. The output of this program will be "My Main".

0 comments:
Post a Comment