WHAT IS STATIC METHOD IN JAVA?

Devesh Kumar Singh

Total Post:12

Points:60
Posted by  Devesh Kumar Singh
Java 
 591  View(s)
Ratings:
Rate this:
  1. Devesh Kumar Singh

    Post:12

    Points:60
    What is static method in Java?

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

      Modified On Mar-28-2018 05:48:03 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!