title: How is the exception handled if you don't catch it?
body: <p>I am displaying countries and it's codes using <code>Locale.class</code>. </p>
  
  <p>I just want to know How is the exception handled in the follwing code </p>
  
  <pre><code> public Locale(String language, String country, String variant) {
      if (language== null || country == null || variant == null) {
          throw new NullPointerException();
      }
      baseLocale = BaseLocale.getInstance(convertOldISOCodes(language), "", country, variant);
      localeExtensions = getCompatibilityExtensions(language, "", country, variant);
  }
  </code></pre>
  
  <p>as I'm not catching it in my class</p>
  
  <pre><code>String[] locales = Locale.getISOCountries();
  
      for (String countryCode : locales) {
  
          Locale obj = new Locale("", countryCode); //NullPointerException - thrown if either argument is null. 
  
          System.out.println("Country Code = " + obj.getCountry()
                  + ", Country Name : " + obj.getDisplayCountry());
  
      }
  </code></pre>
  
  <p>As I know the method has to use <code>throws</code> to throw any new <code>Thowable</code> object and the newly throwned object must be handled in the implemented class.</p>
  
  <p>I'm a Newbie with exception handling in java.</p>