About Question enthuware.ocpjp.v7.2.1174 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
pfilaretov
Posts: 35
Joined: Mon Jul 28, 2014 2:05 am
Contact:

About Question enthuware.ocpjp.v7.2.1174 :

Post by pfilaretov »

Q: "Which of the following texts can occur in a valid resource bundle file?"

Why is the last option incorrect?

Code: Select all

greetings1=bonjour,greetings2=no bonjour
Seems to be a valid property with key="greetings1" and value="bonjour,greetings2=no bonjour".

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

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

Post by admin »

Well, yes, from that perspective you can put pretty much anything in a property file. But from the exam perspective, the property file should contain name=value pairs and from the contents of the given property file, it is quite clear that "bonjour,greetings2=no bonjour" is not a greeting.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.

pfilaretov
Posts: 35
Joined: Mon Jul 28, 2014 2:05 am
Contact:

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

Post by pfilaretov »

But the question doesn't talk about greetings. It talks about "texts", so this options is confusing. It "can occur" as well as other correct options.

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

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

Post by admin »

Again, you are right about what you are saying and you can argue with us about it as well. But you won't be able to do so in the real exam and there you may find similar values :)
If you like our products and services, please help us by posting your review here.

pfilaretov
Posts: 35
Joined: Mon Jul 28, 2014 2:05 am
Contact:

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

Post by pfilaretov »

ok, thank you =)

insider
Posts: 29
Joined: Wed Apr 17, 2013 9:22 am
Contact:

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

Post by insider »

Probably it's needed to add that colon (:) and blank space ( ) work as separators too. Comments might also be specified with "!".
I failed to find official Javadoc for this though but it works and it's known.

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests