WHAT IS STATIC METHOD IN JAVA?

Devesh Kumar Singh

Total Post:12

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

    Post:12

    Points:60
    What is static method in Java?

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

      Modified On Nov-17-2015 03:36:20 AM

Answer

NEWSLETTER

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