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.

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);
}
}
- Where does execution begin in the Java application called Clay -- or in any Java application?
- In object-oriented terms, what does the first executable statement of the program accomplish?
- In object-oriented terms, what does the second executable statement of the program accomplish?
- In object-oriented terms, what does the third executable statement of the program accomplish?
- Something is notably lacking in this application. What happens if you try to close the frame by double clicking in the "close" box?