import javax.swing.*; public class Test { public static void main(String[] args) { JButton jbtOK = new JButton("OK"); System.out.print(jbtOK.isVisible() + ", "); JFrame frame = new JFrame(); System.out.println(frame.isVisible()); } }

Show the output of the following code?

import javax.swing.*;
public class Test {
  public static void main(String[] args) {
    JButton jbtOK = new JButton("OK");
    System.out.print(jbtOK.isVisible() + ", ");
    JFrame frame = new JFrame();
    System.out.println(frame.isVisible());
  }
}

A. true, true
B. true, false
C. false, true
D. false, false

The correct answer is B


Java

Learn More Multiple Choice Question :