The static methods can be called by using the class name, which they belong to instead of creating an object. Syntax: className. staticMethod();
The static methods can be called by using the class name, which they belong to instead of creating an object. Syntax: className. staticMethod();