Qus:    What is the final variable?
Apr 01, 2021 13:04 1 Answers Views: 43 SANJAY
Prev Next
Answers (1)
RANJIT Apr 02, 2021 10:33
Answer:   In Java, the final variable is used to restrict the user from updating it. If we initialize the final variable, we can't change its value. In other words, we can say that the final variable once assigned to a value, can never be changed after that. The final variable which is not assigned to any value can only be assigned through the class constructor.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect