Self-Assessment Exercises
Chapter 2:
Your First Java Application
1.
In Java, a(n) ________ is an instance of a ________.
a.
field, class
b.
function, method
c.
method, field
d.
object, class
2.
In Java, we model the idea of specialization using the keyword ________.
a.
class
b.
extends
c.
inherits
d.
specializes
3.
The exact keywords, punctuation, and order of terms are called the ________ of the language.
a.
intellectual property
b.
keywords
c.
semantics
d.
syntax
4.
The two types of Java programs are ________ and ________.
a.
applets and applications
b.
applications and systems
c.
clients and servers
d.
GUI and IDE
5.
A Java program must be ________ before it can be executed.
a.
assembled
b.
compiled
c.
imported
d.
linked