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.