Multiple choice

Which of the c constants cannot be changed and are declared by using the keyword?

  1. Final

  2. Static

  3. Abstract

  4. Immutable

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

Final is a keyword which is used in three cases: (1) a final class means you cannot extend the class, i.e. you can't make a subclass, (2) a final method means you can not override the method, (3) a final variable means you cannot change it's value.