Onetime I forgot to put the static keyword for the main method in my java class. And the program did not work . So the question is why we always need to mark the main method as static?
Asked
Active
Viewed 109 times