If you apply static keyword with any method, it is known as static method.
Following is the example of static method
Output:
Following is the another example of a static method that performs a normal calculation
The output for the above program is 125.