title: Error - At least one public class is required in main file java?
body: <p><strong>My Code:</strong></p>
  
  <pre><code>class Emp {} 
  class Manager extends Emp{}
  class Director extends Manager {} 
  class Test{
       public static void main(String[] args) {
            Emp e = new Emp(); Director d = new Director();
            System.out.println(e instanceof Object); 
            System.out.println(d instanceof Object); 
            System.out.println(d instanceof Director); 
            System.out.println(d instanceof Manager); 
            System.out.println(d instanceof Emp); 
       }
  }
  </code></pre>
  
  <p><strong>Desired Output:</strong></p>
  
  <pre><code>true
  true
  true
  true
  true
  </code></pre>
  
  <p><strong>Actual Output:</strong>
      <em>Error - At least one public class is required in main file java?</em></p>