Chapter 1 Flashcards
Java is platform neutral. What does that mean?
It can run without modification on different computing environments.
An approach to building computer programs that mimics how objects relate to each other in the real world is known as…
Object-oriented programming
A template used to create an object is called a…
Class
A self-contained element of a computer program that has certain attributes and can accomplish certain tasks is called an…
Object
In a class, attributes are defined using…
Variables
Variables that define an attribute of a particular object are called…
Instance variables, or object variables
Variables that have the same value in all objects of a class are called…
Class variables
The behavior that a class is capable of is defined by …
Methods
Groups of related statements in a class that perform a specific task are called…
Methods
How many tasks does a well-defined method typically perform?
One
What is the Java command for printing text and
moving to the next line?
System.out.println(“Text goes here”);
The mechanism that enables one class to possess all the behavior and attributes of another class is called…
Inheritance
A class that inherits from another class is called a…
Subclass
A class that passes its attributes and behavior to another class is called a
Superclass
At the top of the Java class hierarchy is the class called _____________
Object