Yes. You can have any number of main methods with different method signature and implementation in the class.