July 6, 2014
Methods in Java
In Java Programming Language, methods may or may not accepts parameters.
The methods in Java, came in two flavors :
- Instance methods. Are used to manipulate instance variables.
- Class methods. Also called static methods and are used to manipulate the static variables.