A bit confused about the public static void main method in Java and was hoping someone could help. I have two classes
public class theGame {
public s
Your application has one entry point, and that entry point is the single main method that gets executed. If your entry point is the theGame
class, only the main method of that class will be executed (unless you manually execute main methods of other classes).
Creating an instance of lineTest
class doesn't cause its main method to be executed.