Question: Java Question 11 The title of a JFrame can be set by using which statement in the constructor of your class that extends JFrame? super(Title
Java
Question 11
The title of a JFrame can be set by using which statement in the constructor of your class that extends JFrame?
| super(Title here); |
| setFrameTitle(Title here); |
| setTitleFrame(Title here); |
| JFrame.super(Title here); |
Question 12
Which type of exception occurs when creating a FileReader object for a nonexistent file?
| EndOfFile |
| FileNotFound |
| FileNotFoundException |
| FileNotExistException |
Question 13
What layout manager should you use so that every component occupies the same size in the container?
| any layout |
| a FlowLayout |
| a BorderLayout |
| a GridLayout |
Question 14
The interface _____ should be implemented to listen for a button action event.
| FocusListener |
| ContainerListener |
| ActionListener |
| WindowListener |
Question 15
The datatype returned by the JOptionPane.showInputDialog method is
| String. |
| int. |
| double. |
| specified by the user in the method call. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
