How many constructors are there of CardLayout?
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.