Java | final keyword | Question 3
(B) Compiler Error
(C) Garbage value
Explanation: i is assigned a value twice. Final variables can be assigned values only one. Following is the compiler error “Main.java:5: error: variable i might already have been assigned”
Quiz of this Question
My Personal Notes arrow_drop_up
Please Login to comment...