title: Cannot find a symbol error in java when compiling from command prompt
body: <p>Hi I have created two Java file under a directory called Utility with as follow:</p>
  
  <ol>
  <li>FileName.java</li>
  </ol>
  
  <blockquote>
  <pre><code>public class FileName {
    private String name;
    public FileName (String name) {
        //some code
    }
    String getName() {
        return name;
    }
  }
  </code></pre>
  </blockquote>
  
  <ol start="2">
  <li>FileNameReader.java</li>
  </ol>
  
  <blockquote>
  <pre><code>public class FileNameReader {
  
    public static void main(String[] args) throws IOException {
        FileName obj = new FileName("testfile.txt");
    }
  
  }
  </code></pre>
  </blockquote>
  
  <p>Now, when i am comipling throw command prompt, compiler giving me error saying cannot file symbol at FileName obj = new FileName(); this line</p>