Computer Science, asked by joji9333, 9 months ago

Advantages of function in java

Answers

Answered by snehakumari1952005
3

Advantages of methods are as follows :

⏩ The 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 .

⏩ Methods can be overloaded or over ridden .

⏩ Methods allow recursion and it acts as a loop .

Mark me as brainliest plzzzzzz

Answered by abdiq2020
1

Answer:

Explanation:

Usage of functions as input to and output from other functions, higher order functions.

Usage of map , filter , and reduce type functions instead of looping.

Immutable state.

Recursion in place of looping.

Composing functions from other functions.

Distinguishing “pure” functions from functions with side effect

Similar questions