MCQ PracticeSingle Best AnswerTopic: Abstract class and method
Q
What is a blank final variable?
Question ID
#10343
Subchapter
Abstract class and method
Action
Choose one option below
Choose Your Answer
Click an option to check whether your answer is correct.
A
A blank final variable is a variable that is not assigned any initial value and remains constant throughout the program. ✔✖
B
A blank final variable is a variable that is declared with the "final" keyword but can be assigned a value later in the program. ✔✖
C
A blank final variable is a variable that is declared without any data type specified. ✔✖
D
A blank final variable is a variable that is not declared with any modifiers or keywords. ✔✖
B
Correct Answer: B
Explanation
A blank final variable is a variable that is declared with the "final" keyword and cannot be changed or reassigned once it has been initialized. It is a constant value that remains the same throughout the program.