Multiple choice

How many constructors are there of CardLayout?

  1. 5

  2. 4

  3. 3

  4. 2

  5. 1

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the correct answer, there are two constructors of CardLayout. These are :-CardLayout() :-Creates a new card layout with gaps of size zero.CardLayout(int hgap, int vgap) :- Creates a new card layout with the specified horizontal and vertical gaps.So this is the correct choice.