calling main()?

Can a main() method of class be invoked in another class?
[71 byte] By [taruniiitb] at [2007-9-30 11:26:45]
# 1
yes it can be
Rohan__Kamat at 2007-7-4 11:35:12 > top of Java-index,Administration Tools,Sun Connection...
# 2

thanks

was able to try a working example

//CallMain.java

public class CallMain

{

public static void main(String args[])

{

System.out.println("i m CallMain's main");

}

}

//Caller.java

class Caller {

public static void main(String []args)

{

String []str = {"Hello", "World", "123"};

CallMain.main(str);

}

}

taruniiitb at 2007-7-4 11:35:12 > top of Java-index,Administration Tools,Sun Connection...