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 correct answer because there are only three constructors are there for FlowLayout. These are:- lowLayout():- 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. So, this answer is correct.