title: File not found exception in java even though file exists in src folder
body: <p>File not found exception in java even though file exists in src folder,  src folder has 2 files kaif.xml and PropertiesDemo.java</p>
  <p>FilePath:
  C:\Users\sam\Desktop\javatest\Java\BasicJava\PropertiesDemo_loadFromXML_App\PropertiesDemo\src\kaif.xml</p>
  <p>PropertiesDemo.java</p>
  <pre><code>class PropertiesDemo
  {
  
      public static void main(String[] args) throws IOException
      {
          Properties p = new Properties();
  
          try (FileInputStream fis = new FileInputStream(&quot;kaif.xml&quot;))
          {
              
              p.loadFromXML(fis);
  
              Enumeration&lt;?&gt; enumeration = p.propertyNames();
  
              while (enumeration.hasMoreElements())
              {
                  String key = (String) enumeration.nextElement();
                  String value = p.getProperty(key);
  
                  System.out.println(key + &quot; = &quot; + value);
              }
  
          }
  
      }
  }
  </code></pre>