Methods in Java

In Java Programming Language, methods may or may not accepts parameters.

The methods in Java, came in two flavors :

  1. Instance methods. Are used to manipulate instance variables.
  2. Class methods. Also called static methods and are used to manipulate the static variables.

Add a Comment

Your email address will not be published.