Suppose a JFrame uses the GridLayout(0, 2). If you add six buttons to the frame, how many columns are displayed?

Suppose a JFrame uses the GridLayout(0, 2). If you add six buttons to the frame, how many columns are displayed?


A. 1
B. 2
C. 3
D. 4

The correct answer is B


Java

Learn More Multiple Choice Question :