why main main method in java is static code example
Example: do i have to use static methods in java main
Use a static method
when you want to be able to access the method
without an instance of the class
Use a static method
when you want to be able to access the method
without an instance of the class