Multiple choice

Which of the following is not a valid constructor of scroll pane in java swing?

  1. JScrollPane(Component comp, int vsb, int hsb)

  2. JScrollPane(int vsb, int hsb)

  3. JScrollPane(Component comp)

  4. None of the above

  5. Both (2) and (3)

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

All of the above are valid constructors in scroll pane in java swing.