Saturday, January 12, 2013

TwoMainMethodExample


package com.basics;

public class TwoMainMethodsExample {

public static void main(String args[]) {

Temp tp = new Temp();
//tp.main("");
tp.main(null);//null can be passed in place of String....
}

}



class Temp {

public static void main(String... args) {
System.out.println("inside temp class------------");
}
}

No comments:

Post a Comment