Multiple choice

How many constructors are there for Layout manager FlowLayout?

  1. 5

  2. 4

  3. 3

  4. 2

  5. 1

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

This is the correct answer because there are only three constructors for FlowLayout. These are:- FlowLayout() :- create a default flowLayoutFlowLayout(int Alignment) :- creates a flowlayout with specified alignment, where alignment can take value, FlowLayout.LEFT, FlowLayout.LEFT, FlowLayout.LEFTFlowLayout(int alignment, int hgap, int vgap) :- same as second constructor with specified horizontal and vertical gap between the components.