Important Java Mcq 1

Which is the correct constructor of gridlayout?

a. GridLayout(int a)

b. GridLayout(int num_rows, int num_columns)

c. GridLayout(int rows, int cols, int vert)

d. GridLayout(int hor)

Answer:

b. GridLayout(int num_rows, int num_columns)

Explanation:

All the

The GridLayout class is a layout manager that lays out a container’s components in a rectangular grid. The container is divided into equal-sized rectangles, and one component is placed in each rectangle. It has two constructors one is row and Another one is column.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?