Chapter 6 Quiz Review Flashcards
JLabels are used to get input and show output: (T/F)
False
JFrame is a package: (T/F)
False
What is the name of the Java classes that are provided so that the values of primitive data types can be treated as objects?:
Wrappers
Which of the following is not a required attribute of a window:
Color
Given the declaration:
Integer sum;
The statement num = 25; is known as auto boxing of the int type. (T/F)
True
The method getContentPane of the class JFrame is used to access the content pane of the window: (T/F)
True
An action event is handled by the class JFrame: (T/F)
False
Which modifier is used to build classes On top of classes that are interfaces?
Implements
If Shape is a class and you create a new class Circle that extends Shape, then shape is a _____ and circle is a _____ .
Which word goes in the first blank?
Superclass
Which of the following is not a method of the class JTextField?
setVisible
Every window has a title, width, and height
t/F
True
The Java class you use to create windows:
JFrame
Which of the following GUI components is used to get input into a GUI program ?
JTextField
GUI stands for Graphical User Interface (T/F)
True
Write a program that takes as input the radius of a circle and finds the circumference and area of the circle.
Based on this problem statement which of the follow would most likely be chosen as the class?
Circle