Suppose that we have the following property files and code. Which bundles are used on lines 8 and 9 respectively?
Dolphins.properties
name=The Dolphin
age=0
Dolphins_en.properties
name=Dolly
age=4
Dolphins_fr.properties
name=Dolly
...
The correct answer according to page 558 is:
D. Dolphins_fr.properties and Dolphins.properties
It should have been:
D. Dolphins_fr.properties and Dolphins_en.properties
Line 9 should find a match in the English resource file for "age" as it is the default locale (BTW en-US happens to be the default locale on my computer even though I'm in Europe, even without setting it explicitly).
This goes in accordance with table 5.7 in p.264: first we look for the requested locale, as it is not defined there we go to the default locale, and then we would hit the default file but in this case it doesn't need to.
Am I missing something here?