when there are static and public methods in a class what will be the output in java 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