In Java, which of the following accurately describes the purpose of the final keyword when applied to a class member variable? - Study24x7
Social learning Network
2 followers study24x7 11 Aug 2023 12:14 PM study24x7 study24x7

In Java, which of the following accurately describes the purpose of the final keyword when applied to a class member variable?

A

The variable's value cannot be changed after initialization.

B

The variable can only be accessed within the class that defines it.

C

The variable's value is automatically assigned by the compiler.

D

The variable can be accessed and modified by any class.

study24x7
Write a comment
Most Related Articles