Multiple choice

How many constructors are present of 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 the 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) : creates a borderlayout with specified horizontal and vertical gaps between the components.