title: java 'File' Object not making the directory and file
body: <p>I was trying to make a directory and file using java with <strong>File</strong> object as: </p>
  
  <pre><code>import java.io.*;
  class CreateFile{
  
      public static void main(String[] args) throws IOException{
          File f = new File("File/handling/file1.txt");
          if(!f.exists())
             f.createNewFile();
      }
  }
  </code></pre>
  
  <p>but its showing error (see below) and unable to make it, the path and file name doesn't existed before execution. I don't know where am I going wrong, someone please clarify whats the mistake and how to resolve it? It might be I need to know something about <strong>File</strong> object, so please do tell me...</p>
  
  <p>See error: </p>
  
  <pre><code>Exception in thread "main" java.io.IOException: The system cannot find the path
  specified
  
      at java.io.WinNTFileSystem.createFileExclusively(Native Method)
      at java.io.File.createNewFile(File.java:947)
      at CreateFile.main(CreateFile.java:6)
  </code></pre>