Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

With click of Button1, Button2 will be added to the south of the Frame . a) True

ID: 3539519 • Letter: W

Question

With click of Button1, Button2 will be added to the south of the Frame .
a) True b) False

- See more at: http://way2java.com/java-questions/test-your-java-8/#sthash.sKVeFGKc.dpuf

   class NewButton extends Frame implements ActionListener        {          Button btn1, btn2;           NewButton()             {            btn1 = new Button("Button1");            btn2 = new Button("Button2");            btn1.addActionListener(this);            add(btn1,"North");          }          public void actionPerformed(ActionEvent ae)          {             add(btn2,"South");          }          public static void main(String args[])             {            Frame f = new NewButton();             f.setVisible(true);               f.setSize(300, 300);           }           }

Explanation / Answer

true

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote