COSC Exam 4

Ace your homework & exams now with Quizwiz!

AWT stands for

abstract window toolkit

A ____________ is used to respond to a click event.

action listener

An ____________ is used to respond to a click event.

action listener

Inheritance does not inherit what from the parent class?

constructors

Inheritance means the derived class inherits what from the parent class?

data and methods

The 3 characteristics of an OOP language are

encapsulation, inheritance and polymorphism

______ means that the program must execute operations or processes in response to events.

event driven

T/F A derived class has access to all method and data in the parent class.

false

T/F The access specifier private limits access to within the package.

false

T/F ActionListener is an event.

false, interface

T/F A class can only contain one constructor.

false, must be overloaded

T/F Only one class can be defined in a file.

false, only one public class

GUI stands for

graphic user interface

Font is defined in package _____.

java.awt

ActionListener is defined in package _____.

java.awt.event

In Java, _____ are used to respond to events.

listeners

T/F A class must be defined before you can create the associated object.

true

T/F A derived class can override a method in the parent class.

true

T/F A static method is a class method.

true

T/F A super class is the same as a parent class.

true

T/F In a derived class, the keyword super gives you access to the base class.

true

T/F JFrame is a top-level window.

true

T/F JMenuBar is a GUI component that enables the use of menus in a JFrame.

true

T/F The access specifier private limits access to within the class.

true

T/F The constructor has the same name as the class.

true

T/F The default constructor has no parameters.

true

T/F The paint method in a JFrame can be overridden.

true

T/F The method setBounds is used to set the size of a JFrame.

true, setBounds and setVisible are important

T/F Swing is the preferred Java class library for doing GUI programming.

true, swing and awt


Related study sets

Questions from text chapter 9 (strings)

View Set

Microbial Metabolism: Fueling Cell Growth

View Set

Organizational Behavior Chapter #4

View Set

HUSH Chapter 14 and 15 study guide

View Set

Chapter 03: Reproductive Anatomy and Physiology

View Set

AP European History Semester 1 Test Questions

View Set

NUR 236 PrepU Chapter 30: Atraumatic Care of Children and Families

View Set