About Question enthuware.ocpjp.v11.2.1893 :
Posted: Thu May 19, 2022 9:44 am
In this question, the answer ' count' is correct, with the statement " Although count is a local variable but its value does not change anywhere in the code. Hence, it is effectively final and is therefore accessible from the inner class."
However, part of the ' code' is the comment " // lots of code....."
How can we know that count is effectively final, if we do not have all the code?
However, part of the ' code' is the comment " // lots of code....."
How can we know that count is effectively final, if we do not have all the code?