Page 1 of 1

About Question enthuware.ocpjp.v21.2.4018 :

Posted: Fri Oct 24, 2025 3:06 pm
by krotki1234
Hi,
I believe the answer to this question is wrong.
Based on thread here: https://enthuware.com/forum/viewtopic.p ... 018#p28799
ResourceBundle should be searched by this path: msgs_fr(requested by user) -> msgs_en_GB -> msgs_en -> msgs.
Answer to this question states that it should fallback from "fr" straight into default "msgs.properties".
Is it right or I'm missing something?

Re: About Question enthuware.ocpjp.v21.2.4018 :

Posted: Fri Oct 24, 2025 8:15 pm
by admin
The given answer and explanation are correct. Please go through the book pages given in the other thread carefully. There are two different scenarios.
In the other question, no file for the requested locale was available so it picked the file for the default locale. In this question, a file for the requested locale was found, so the file for the default locale is not used.

Re: About Question enthuware.ocpjp.v21.2.4018 :

Posted: Sun Nov 02, 2025 2:09 pm
by krotki1234
Thanks for clarification, I passed the "real" exam on Wednesday (with 72%) and had identical question, so I'm glad that You've explained the topic and I got it right there. Good luck to everyone who will take the exam next. I'm keeping my fingers crossed :D

Re: About Question enthuware.ocpjp.v21.2.4018 :

Posted: Mon Nov 03, 2025 1:01 am
by admin
That's great, congratulations!! Happy to be of some help.
If you can, please give a review for our book on Amazon: https://amzn.to/4dEACui

Re: About Question enthuware.ocpjp.v21.2.4018 :

Posted: Mon Dec 08, 2025 11:28 pm
by bevis0405
See the ResourceBundle and ResourceBundle.Control docs which describe the candidate-locale generation and the fallback-to-default-locale step.
Escape Road