Which identifier is correctly named according to Java standards for a constant…
2025
Which identifier is correctly named according to Java standards for a constant variable?
- A.
final_value
- B.
FINAL_VALUE
- C.
FinalValue
- D.
finalValue
Attempted by 58 students.
Show answer & explanation
Correct answer: B
Java constants follow the UPPER_SNAKE_CASE naming convention. This means all letters should be uppercase and words separated by underscores, like FINAL_VALUE.