Clay Shell Version 1

Version 1 of the Clay Shell program merely creates a frame and makes it visible. The frame is titled "Clay". It is 200x400 pixels in size.

Demos

Code

package clay1;

import java.awt.*;

public class Main {
    
    public Main() {
    }
    
    public static void main(String[] args) {
        Frame frame = new Frame("Clay");
        frame.setSize(400,200);
        frame.setVisible(true);
    }
    
}

Questions

  1. Where does execution begin in the Java application called Clay -- or in any Java application?
  2. In object-oriented terms, what does the first executable statement of the program accomplish?
  3. In object-oriented terms, what does the second executable statement of the program accomplish?
  4. In object-oriented terms, what does the third executable statement of the program accomplish?
  5. Something is notably lacking in this application. What happens if you try to close the frame by double clicking in the "close" box?