About Question enthuware.ocpjp.v7.2.1163 :

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
kappert
Posts: 2
Joined: Fri Dec 28, 2012 10:42 am
Contact:

About Question enthuware.ocpjp.v7.2.1163 :

Post by kappert »

The code given to consider...

Code: Select all

Locale myLoc = new Locale(new Locale("fr", "FR"));
ResourceBundle rb = ResourceBundle.getBundle("appmessages", myLoc);
... does not compile. No need to construct Locale twice, it should be:

Code: Select all

Locale myLoc = new Locale("fr", "FR");
ResourceBundle rb = ResourceBundle.getBundle("appmessages", myLoc);
I find it a bit misleading that the suggested solutions will result in "duplicate local variable" compiler errors.

Code: Select all

ResourceBundle rb = ResourceBundle.getBundle("appmessages", Locale.CHINA);
That is what kept me from choosing the correct solutions. Does one really have to expect this type of question in a real exam?
If this is not a realistic Oracle scenario, I would find it clearer to state the possible solutions with reassignments (instead of declaring the same variable again):

Code: Select all

rb = ResourceBundle.getBundle("appmessages", Locale.CHINA);

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

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

Post by admin »

You are right. The double new as well as the redeclaration of rs are not right.
It has now been fixed.

The basic objective of this question is to drive the point that once ResourceBundle is created, you can't change it. There are questions on this aspect in the exam.

thank you for your feedback.
-Paul.
If you like our products and services, please help us by posting your review here.

Ciprian Mihalache
Posts: 51
Joined: Wed Sep 28, 2011 12:14 pm
Contact:

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

Post by Ciprian Mihalache »

Today (10 Feb) I downloaded the last question bank (v14) and the fix is not present.
Paul, is it possible to make a new build with the latest fixes?
Thank you.

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

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

Post by admin »

My mistake. It was fixed in the regular question bank but not propagated to the upgrade question bank. Fixed now.

thank you,
Paul.
If you like our products and services, please help us by posting your review here.

Ciprian Mihalache
Posts: 51
Joined: Wed Sep 28, 2011 12:14 pm
Contact:

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

Post by Ciprian Mihalache »

Thank you. One strange thing though, I downloaded the latest question bank and I still get version 14. The tool automatically updated the question bank but it also downloads the version v14. Is it possible to be on server the info that last version is 15, but the ets file to be the one from version 14?

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

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

Post by admin »

Please try now.
-Paul.
If you like our products and services, please help us by posting your review here.

Ciprian Mihalache
Posts: 51
Joined: Wed Sep 28, 2011 12:14 pm
Contact:

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

Post by Ciprian Mihalache »

Now it is ok. Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests