title: Should I put main method in superclass or subclass in Java
body: <p>If a class has inheritance in a Java program, do I need to put main method in the superclass or subclass? Many programs put the main method in different positions. Can anybody tell me how to do that? Thanks a lot!</p>