Q.

An Applet has its Layout Manager set to the default of FlowLayout. What code~~~would be the correct to change to another Layout Manager?

A. setLayoutManager(new GridLayout());.
B. setLayout(new GridLayout(2,2));.
C. setGridLayout(2,2,)).
D. setBorderLayout();.
Answer» B. setLayout(new GridLayout(2,2));.
929
0
Do you find this helpful?
4

View all MCQs in

Java Programming

Discussion

No comments yet