title: Why do not I need to import java.lang when using Runtime?
body: <p>In the piece of code below, Why do I need to import <code>java.awt.Robot</code> but I can use <code>Runtime</code> without importing <code>java.lang.Runtime</code>?</p>
  
  <pre><code>package classes;
  
  import java.awt.Robot;
  
  public class RuntimeExecution {
      public static void main(String[] args) {
          try {
              Runtime.getRuntime().exec("notepad");
              Robot robot = new Robot();
              robot.keyPress(65);
          } catch (Exception e) {
              System.out.println(e.getMessage());
          }
      }
  }
  </code></pre>