title: Determining which Resource Bundle to use in Java 8
body: <p>I have 3 Resource Bundle (RB) properties file: <code>RB_en, RB_fr and RB</code>. I set a default Locale of "<code>en_US</code>" and now I use <code>getBundle("RB", new Locale("fr"))</code> to get value for a key "<strong>key1</strong>". I know that Java will look first for the properties file RB_fr, but if the key "<strong>key1</strong>" is not found in <code>RB_fr</code>, then in which oder will it continue looking? the <code>RB_en</code> file or <code>RB</code> file?. </p>
  
  <p>So here some demo code: </p>
  
  <p>RB.properties: 
  key1 = valueRB</p>
  
  <p>RB_en.properties:
  key1 = valueRB_en</p>
  
  <p>RB_fr.properties: key2 = valueRB_fr</p>
  
  <pre><code> Locale fr = new Locale("fr");
   Locale.setDefault(new Locale("en", "US"));
   ResourceBundle b = ResourceBundle.getBundle("RB", fr);
   b.getString("key1");
  </code></pre>
  
  <p>I read a book, the OCP Java SE 8 Programmer II, it said that the order will be <code>RB_fr -&gt; RB_en -&gt; RB</code>. But when I run a test, the order it shown was <code>RB_fr -&gt; RB</code>, the <code>RB_en</code> even didn't take into account. So this make me a bit confused, can anyone explain me which order is correct?</p>