About Question enthuware.ocpjp.v7.2.1472 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
jimi24
Posts: 5
Joined: Thu Jan 02, 2014 3:36 am
Contact:

About Question enthuware.ocpjp.v7.2.1472 :

Post 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?

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1472 :

Post 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.

ewebxml
Posts: 77
Joined: Sun Jun 30, 2013 10:04 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1472 :

Post by ewebxml »

In the explanation for criteria [answer c) ], the word 'variable' is spelled incorrectly.

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1472 :

Post by admin »

Fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests