To create a JPanel of the BorderLayout, use ___.

To create a JPanel of the BorderLayout, use ______________.


A. JPanel p = new JPanel()
B. JPanel p = new JPanel(BorderLayout());
C. JPanel p = new JPanel(new BorderLayout());
D. JPanel p = new JPanel().setLayout(new BorderLayout());

The correct answer is C


Java

Learn More Multiple Choice Question :