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?
About Question enthuware.ocpjp.v7.2.1472 :
Moderators: Site Manager, fjwalraven
-
- Posts: 5
- Joined: Thu Jan 02, 2014 3:36 am
- Contact:
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1472 :
This is already explained in the explanation -
HTH,
Paul.
criteria is accessible because it is final.Also, only final local variables of the method are accessible to the inner class defined in that method so option 4 is not correct.
HTH,
Paul.
-
- Posts: 77
- Joined: Sun Jun 30, 2013 10:04 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1472 :
In the explanation for criteria [answer c) ], the word 'variable' is spelled incorrectly.
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1472 :
Fixed.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: Google [Bot] and 11 guests