Page 1 of 1
About Question enthuware.ocpjp.v7.2.1174 :
Posted: Tue Mar 31, 2015 12:27 am
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".
Re: About Question enthuware.ocpjp.v7.2.1174 :
Posted: Tue Mar 31, 2015 12:36 am
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.
Re: About Question enthuware.ocpjp.v7.2.1174 :
Posted: Tue Mar 31, 2015 1:15 am
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.
Re: About Question enthuware.ocpjp.v7.2.1174 :
Posted: Tue Mar 31, 2015 2:31 am
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

Re: About Question enthuware.ocpjp.v7.2.1174 :
Posted: Wed Apr 01, 2015 12:57 am
by pfilaretov
ok, thank you =)
Re: About Question enthuware.ocpjp.v7.2.1174 :
Posted: Tue Aug 09, 2016 4:31 am
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.