What is static method in java?
Ask by Anonymous User
Updated 16 Sep 2020
If you apply static keyword with any method, it is known as static method.
class programming {
public static void main(String[] args) {
display();
}
static void display() {
System.out.println("Java is my favorite programming language.");
}
}