Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose name you have mentioned. Hence there is not conflict among the multiple classes having main method.
Another point is that you can have overloading also with the main method which means there can be two main method with the different parameters.
public static void main(String[] args)
public static void main(StringSecond[] args)