Methods in JAVA

A method consists of related set of statements to perform a specific task. Method may or may not return some value. Methods provides us the facility to use the same …