Page 1 of 1
About Question enthuware.ocpjp.v7.2.1472 :
Posted: Thu Jan 02, 2014 3:42 am
by jimi24
I didn't understood the explanation clearly. What difference does it make for variable scoping if the variable is final or not.
Why criteria variable is accessible and count is not?
Re: About Question enthuware.ocpjp.v7.2.1472 :
Posted: Thu Jan 02, 2014 4:30 am
by admin
This is already explained in the explanation -
Also, only final local variables of the method are accessible to the inner class defined in that method so option 4 is not correct.
criteria is accessible because it is final.
HTH,
Paul.
Re: About Question enthuware.ocpjp.v7.2.1472 :
Posted: Mon Mar 10, 2014 2:31 pm
by ewebxml
In the explanation for criteria [answer c) ], the word 'variable' is spelled incorrectly.
Re: About Question enthuware.ocpjp.v7.2.1472 :
Posted: Mon Mar 10, 2014 8:22 pm
by admin
Fixed.
thank you for your feedback!