Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following statements is false? A constructor is required to be written for every class. The name of the constructor must be the

Which of the following statements is false?

A constructor is required to be written for every class.

The name of the constructor must be the same as the name of the class.

A constructor can be used to initialize instance variables.

A class can have multiple constructors with different parameter lists.

(TCOs 1, 3, and 6) The _____ class can be used to get user input using dialog boxes.

JFrame

Scanner

JPanel

JOptionPane

(TCOs 1, 3, and 6) A(n) _____ has a border and contains all of the normal window controls for your operating system, such as minimize, maximize, and close buttons.

JTable

JButton

JPanel

JFrame

(TCOs 1, 3, and 6) Suppose a JFrame uses GridLayout(2,0). If you add six buttons to the frame, how many columns are displayed?

1

2

3

4

(TCOs 1, 3, and 6) The extends keyword in a class declaration indicates the use of

interfaces.

polymorphism.

composition.

inheritance.

(TCOs 1, 3, and 6) The implements keyword in a class declaration indicates the use of

interfaces.

polymorphism.

composition.

inheritance.

(TCOs 1, 3, and 6) The oldest GUI library for Java is

Swing.

JavaFX.

AWT.

SWT.

(TCOs 1, 3, and 6) Which method must be used to register the event handler called eHandler to a JButton component called btnNew?

btnNew.setHandler(eHandler);

btnNew.addActionListener(eHandler);

eHandler.addActionListener(btnNew);

btnNew.eHandler();

(TCOs 1, 3, and 6) Which of the following statements is false?

You can create a text field with specific text to be displayed.

You can disable editing on a text field.

You can specify the number of columns in a text field.

You can specify the number of rows in a text field.

(TCOs 1, 3, and 6) The handler (e.g., actionPerformed) is a required method in

both source and listener objects.

a listener object.

a source object.

the Object class.

No new data to save. L

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

What has been the evolution of HRM?

Answered: 1 week ago

Question

1. Which is the most abundant gas presented in the atmosphere?

Answered: 1 week ago