Yes, by method overloading. You can have any number of main methods in a class by method overloading. Let's see the simple example:
class Simple{
public static void main(int a){
System.out.println(a);
}
public static void main(String args[]){
System.out.println("main() method invoked");
main(10);
}
}
It will give the following output:
main() method invoked
10