• A static method belongs to the class rather than the object.
  • There is no need to create the object to call the static methods.
  • A static method can access and change the value of the static variable.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *