Computer Science, asked by pavanprasad8690, 11 months ago

What is a final parameter in java?

Answers

Answered by sailorQueen
0

The final parameter is a keyword in java programming. Basically final keyword is used to declare constants.

By mentioning the final keyword in class and methods it restricts from inheritance and extending.

I think that this is one of the best coding practice to keep the passed parameters as final to prevent any accidental modifications.

Similar questions