Multiple choice

For what purpose is the given JAVA statement required? horiz1.add(Box.createHorizontalbox();

  1. To create a horizontal box on screen

  2. To create a horizontal space between a defined label and defined text field

  3. To create a position of a symbol on the screen

  4. To create a vertical space between a defined label and defined text field

  5. All of the above

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

The statement provides the required space.