Question 20


The below Applet will display 1: import java.applet.*; 2: import java.awt.*; 3: 4: public class Q20 extends Applet 5: { 6: Button okButton = new Button("Ok"); 7: 8: public void init() 9: { 10: setLayout(new BorderLayout()); 11: 12: add("South", okButton); 13: add("North", okButton); 14: add("East", okButton); 15: add("West", okButton); 16: add("Center", okButton); 17: 18: setSize(300,300); 19: } 20: } A) Five Buttons with label "Ok" at Top, Bottom, Right, Left and Center of the Applet. B) Only one Button with label "Ok" at the Top of the Applet. C) Only one Button with label "Ok" at the Bottom of the applet. D) Only one Button with label "Ok" at the Center of the Applet.