SPIRO THE TECH GURU

Back

What is static method in java?

By Admin on

static method:-


A static method belongs to the class rather than object of a class. A static method can be invoked without the need for creating an instance of a class. static method can access static data member and can change the value of it.


SPIRO Google Plus