calling static methods

Static Method and Static Variable in Java

Static Method and Static Variable: In Java, static is keyword that can be applied to variables and methods but not to classes. static is used as an access modifier. In Java, to call an instance variable or method, an object is required. But a static variable and method can be…