import java.awt.*;
public class FlowAp extends Frame{
public static void main(
String argv[]){
FlowAp fa=new FlowAp();
fa.setSize(400,300);
fa.setVisible(true);
}
FlowAp(){
setLayout(new GridLayout());
add(new Panel());
add(new Button("One"));
add(new Button("Two"));
add(new Button("Three"), "North");
add(new Button("Four"), "South");
}
}
1) A Frame with buttons marked One to Four placed on a Panel
2) A panel and buttons marked One to four running from the left to right
3) A Frame with one large button marked Four in the Centre
4) An Error at run time indicating you have not set a LayoutManager properly
5) An Error at compile time indicating add is called with invalid parameters.
Please pick up the right answer and explain the reason for choosing that answer.