Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In java language Which of the following is false ? A) A JPasswordField shows tha

ID: 3933558 • Letter: I

Question

In java language

Which of the following is false?

A) A JPasswordField shows that characters are being entered, but hides the actual character with an echo character.
B) Class JTextField extends JTextComponent; Class JPasswordField extends JTextField.
C) Both JTextFields and JPasswordFields are single-line areas in which the user can enter text via the keyboard.
D) JPasswordFields generate events; JTextFields do not.

When the user presses Enter in a JPasswordField, the GUI component generates an ________, which is processed by an object that implements the interface _______.

A) ActionEvent, ActionListener
B) ActionEvent, ActionEventListener
C) TextEvent, TextListener
D) TextEvent, TextEventListener

JPasswordField contains method ___________to obtain the data entered.

A) getInput
B) getPassword
C) getText
D) getEcho

A JRadioButton is different from a JCheckBox in that _________.

A) a JRadioButton is a subclass of JToggleButton, JCheckBox is not
B) normally several JRadioButtons are grouped together and are mutually exclusive
C) a JRadioButton is a type of button, JCheckBox is not
D) a JRadioButton is a state button, JCheckBox is not

The fact that class Graphics is abstract contributes to Java’s portability because:

A) drawing is performed differently on every platform that supports Java. A subclass of Graphics must be created that uses the drawing capabilities of the current platform.
B) objects of non-abstract classes can only be instantiated on the Windows platform.
C) drawing should not be performed on non-Linux platforms.
D) Class Graphics is not abstract.

JSliders generate what type of event?

A) ActionEvents
B) ChangeEvents
C) WindowEvents
D) MouseEvents

Menus are attached to windows by calling method ____________.

A) addMenuBar
B) setJMenuBar
C) setMenu
D) addJMenuBar

Explanation / Answer

B) Class JTextField extends JTextComponent; Class JPasswordField extends JTextField.

A) ActionEvent, ActionListener

B) getPassword

B) normally several JRadioButtons are grouped together and are mutually exclusive

A) drawing is performed differently on every platform that supports Java. A subclass of Graphics must be created that uses the drawing capabilities of the current platform.

A) ActionEvents

B) setJMenuBar

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote