[Solved] what is static method why use this in Display class in java [duplicate]


Static methods are those methods can be called without creating its object.
It can be invoked using its class name.

Eg. Math.sqrt(25);

Where Math is the class name, not an object and static methods can access only static properties of the class.

solved what is static method why use this in Display class in java [duplicate]