Multiple choice

How many constructors is/are present in BorderLayout in java?

  1. 5

  2. 4

  3. 3

  4. 2

  5. 1

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

This is correct answer because there are two constructors of borderlayout are present in java.these are:-BorderLayout() :- creates a default borderlayout.BorderLayout(int hgap, int vgap) :- create a borderlayout with specified horizontal and vertical gap between the components.So this answer is correct.