Which of the following texts can occur in a valid resource bundle file?
greetings=bonjour
<key name="greetings">bonjour</key>
<key name="greetings" value="bonjour" />
<key>
<name>greetings</name>
<value>bonjour"</value>
</key>
<key>greetings</key>
<value>bonjour</value>
greetings1=bonjour
greetings2=no bonjour
greetings1=bonjour,greetings2=no bonjour
The test says that the two green options are valid.
Why is the last option invalid?
It is a valid key-value pair with key='greetings1' and value='bonjour,greetings2=no bonjour'
About Question enthuware.ocpjp.v8.2.1174 :
Moderators: Site Manager, fjwalraven
-
- Posts: 1
- Joined: Wed Jun 10, 2015 6:44 am
- Contact:
-
- Site Admin
- Posts: 10053
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1174 :
You are right that technically it is valid. By the same logic even <key name="greetings">bonjour</key> is valid.
In exam, however, you are told how many correct options you have to select and therefore you need to select the best options. Here, from the code, it is quite clear that it is talking about two keys greetings1 and greetings2. So you should not select the other options.
You should expect such slight ambiguity in the real exam as well.
HTH,
Paul.
In exam, however, you are told how many correct options you have to select and therefore you need to select the best options. Here, from the code, it is quite clear that it is talking about two keys greetings1 and greetings2. So you should not select the other options.
You should expect such slight ambiguity in the real exam as well.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 13
- Joined: Wed Jun 14, 2017 1:56 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1174 :
The explanation seems to be slightly incorrect since not only 'key=value' is allowed.A properties file is a plain text file that contains key value pairs in this format:
key=value
The following example of properties file contains three valid key-value pairs:
Code: Select all
test1 a
test2:b
test3 = c
-
- Site Admin
- Posts: 10053
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1174 :
You are right. The explanation has been enhanced to include all the valid ways.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: Bing [Bot] and 29 guests