title: Why dir.mkdir() requires no exception handling, when file.createNewFile() does?
body: <p>Here is a code snippet.</p>
  
  <pre><code>File dir = new File("dir");
          dir.mkdir();
  
          File file = new File(dir,"file.txt");
  
          try {
              file.createNewFile();
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  </code></pre>
  
  <p>I want to know why no exception handling is required while <code>dir.mkdir()</code> when there is one required while <code>file.createNewFile()</code>.</p>
  
  <p>Are we very much sure that "Nothing could wrong" while creating a directory ? If yes, what are the reasons ?        </p>