Multiple choice

Which of the following statements are correct? i. final methods can be overridden ii. final fields are constants iii. final methods cannot be overridden iv. final variables can be changed

  1. i and ii both are correct

  2. i and iv both are correct

  3. ii and iii both are correct

  4. ii and iii both are incorrect

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Final methods are meant not to be overridden. Similarly final variables cannot be changed.