What is the result of executing the following Java class: import java.awt.*; public class FrameTest extends Frame {public FrameTest() {add (new Button("First"));add (new Button("Second"));add (new Button("Third"));pack();setVisible(true);}public static void main(String args []) {new FrameTest();}} Select from the following options:

A) Only the "third" button is displayed.
B) A runtime exception is generated (no layout manager specified).
C) Only the "first" button is displayed.
D) Only the "second" button is displayed.

Showing Answers 1 - 1 of 1 Answers

Vijaya

  • Mar 6th, 2006
 

A

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions