title: cannot create directory using mkdir() method
body: <pre><code>import java.io.*;
  public class mkdir 
  {
  
  
      public static void main(String[] args)
      {
          mkdir m = new mkdir();
  
          File d = new File("D:\\Mobile Developer tools\\eclipse");
          try 
          {
              if(d.mkdir())
                  System.out.println("Directory created :D");
              else 
                  System.out.println("Directory is not created :(");  
  
          } catch(Exception e) {
  
          }
  
      }
  
  
  }
  </code></pre>
  
  <p>I tried the above code to create a directory but the above code shows the output "Directory is not created :(" is there any logical error in this program , thanks in advance </p>