Computer Science, asked by shehbaz001, 11 months ago

what are the benefits of methods in java

Answers

Answered by prashant12330
0

Explanation:

A method can perform some specific task without returning anything. Methods allow us to reuse the code without retyping the code. In Java, every method must be part of some class which is different from languages like C, C++, and Python. Methods are time savers and help us to reuse the code without retyping the code.

Answered by anayalithash76
0

Answer:

he methods help to implement our task easier .  It saves a lot of time in case of several operations and several tasks .  The methods help in data security .  The methods also enable polymorphism

Explanation:

Similar questions