Page 1 of 1

About Question enthuware.ocpjp.v11.2.1769 :

Posted: Sat Oct 15, 2022 4:48 am
by sohamdatey22
Letd say default is en_US

It will search for bundle in below sequence....

msgs_hinglish_IN----->msgs_hinglish---->
msgs_en_US---> msgs _en------>msgs


I believe without knowing default local, this question makes no sense,.. What is someone's default local is
hinglish_US

The bundle will get loaded then....


Isn't it?

Re: About Question enthuware.ocpjp.v11.2.1769 :

Posted: Sat Oct 15, 2022 5:58 am
by admin
Why do you believe so when the JavaDoc API description clearly specifies the search strategy when a locale is given as an argument?

https://docs.oracle.com/en/java/javase/ ... assLoader)

The first file to be looked for will always depend on the specified locale. So how does it matter what the default locale is in the given question?