Shared Flashcard Set

Details

Key Terms for Java Programming
Key Terms for Java Programming based on Teach Yourself Java by O'Neil and Schildt
48
Computer Science
Undergraduate 4
09/25/2011

Additional Computer Science Flashcards

 


 

Cards

Term
abstract
Definition
A Java keyword used in a class definition to specify that a class is not to be instantiated, but rather inherited by other classes. An abstract class can have abstract methods that are not implemented in the abstract class, but in subclasses.
Term
boolean
Definition
Refers to an expression or variable taht can have only a true or false value. The Java programming language provides the boolean type and the literal values true or false.
Term
break
Definition
A Java keyword used to resume program execution at the statement immediately following the current statement. If followed by a label, the program resumes execution at the labeled statement.
Term
byte
Definition
A sequence of eight bits. Java provides a corresponding byte type.
Term
cast (i.e. casting)
Definition
Explicit conversion from one data type to another.
Term
catch
Definition
A Java keyword used to declare a block of statements to be executed in the event that a Java exception, or run time error, occurs in a preceding try block.
Term
char
Definition
A Java keyword used to declare a variable of type character.
Term
class
Definition
In the java programming language, a type that defines the implementation of a particular kind of object. A class definition defines instance and class variables and methods, as well as specifying the interfaces the class implements and the immediate superclass of the class. If the superclass is not explicitly specified, the superclass will implicitly be Object.
Term
const
Definition
A reserved Java keyword not used by current version of the Java programming language.
Term
continue
Definition
A Java keyword used to resume program execution at the end of the current loop. If followed by a label, continue resumes execution where the label occurs.
Term
default
Definition
A Java keyword optionally used after all case conditions in a switch statement. If all case conditions are not matched by the value of the switch variable, the default keyword will be executed.
Term
do
Definition
A Java keyword used to declare a loop that will iterate a block of statements. the loop's exit condition can be specified with the while keyword.
Term
double
Definition
A Java keyword used to define a variable of type double.
Term
else
Definition
A Java keyword used to execute a block of statements in the case that the test condition with the if keyword evaluates to false.
Term
extends
Definition
Class X extends class Y to add functionality, either by adding fields or methods to class Y, or by overriding methods of class Y. An interface extends another interface by adding methods. Class X is said to be a sublcass of class Y. See also "derived from".
Term
final
Definition
A Java keyword. You define an entity once and cannot change it or derive from it later. More specifically: a final class cannot be subclassed, a final method cannot be overridden and a final variable cannot change from its initialized value.
Term
finally
Definition
A Java keyword that executes a block of statements regardless of whether a Java Exception, or run time error, occurred in a block defined previously by the try keyword.
Term
float
Definition
A Java keyword used to define a floasting point number variable.
Term
for
Definition
A Java keyword used to declare a loop that reiterates statements. The programmer can specify the statements to be executed, exit conditions, and initialization variables for the loop.
Term
goto
Definition
This is a reserved java keyword. However, it is not used by the current version of the Java programming language.
Term
if
Definition
A Java keyword used to conduct a conditional test and execute a block of statements if the test evaluates to true.
Term
implements
Definition
A java keyword included in the class declaration to specify any interfaces that are implemented by the current class.
Term
import
Definition
A Java keyword used at the beginning of a source file that can specify classes or entire packages to be referred to later without including their package names in the reference.
Term
instanceof
Definition
a two-argument Java keyword that test whether the runtime type of its first argument is assignment compatible with its second argument.
Term
int
Definition
A Java keyword used to define a variable of type integer.
Term
interface
Definition
A Java keyword used to define a collection of method definitions and constant values. It can later be implemented by classes that define this interface with the "implements" keyword.
Term
long
Definition
A Java keyword used to define a variable of type long.
Term
native
Definition
A Java keyword that is used in the method declarations to specify that the method is not implemented in the same Java source file, but rather in another language.
Term
new
Definition
A Java keyword used to create an instance of a class.
Term
package
Definition
A group of types. Packages are declared with the package keyword.
Term
private
Definition
A Java keyword used in a method or variable declaration. It signifies that the method or variable can only be accessed by other elements of its class.
Term
protected
Definition
A Java keyword used in a method or variable declaration. It signifies that the method or variable can only be accessed by the elements residing in its class, subclasses, or classes in the same package.
Term
public
Definition
A Java keyword used in a method or variable declaration. It signifies that the method or variable can be accessed by elements residing in other classes.
Term
return
Definition
A Java keyword used to finish the execution of a method. it can be followed by a value required by the method definition.
Term
short
Definition
A Java keyword used to define a variable of type short.
Term
static
Definition
A Java keyword used to define a variable as a class variable. Classes maintain one copy of class variables regardless of how many instances exist of that class. Static can also be used to define a method as a class method. Class methods are invoked by the class instead of a specific instance, and can only operate on class variables.
Term
super
Definition
A Java keyword used to access members of a class inherited by the class in which it appears.
Term
switch
Definition
A Java keyword used to evaluate a variable that can later be matched with a value specified by the case keyword in order to execute a group of statements.
Term
sychronized
Definition
A keyword in the Java programming language that, when applied to a method or code block, guarantees that at most one thread at a time executes that code.
Term
this
Definition
A Java keyword that can be used to represent an instance of the class in which it appears. This can be used to access class variables and methods.
Term
thread
Definition
The basic unit of prgram execution. A process can have several threads running concurrently, each performing a different job, such as waiting for events or performing a time-consuming job that the program doesn't need to complete before going on. When a thread had finished its job, the thread is suspended or destroyed. See also "process".
Term
throw
Definition
A Java keyword that allows the user to throw an exception or any class that implements the "throwable" interface.
Term
throws
Definition
A Java keyword used in method declarations that specify which exceptions are not handled within the method but rather passed to the next higher level of the program.
Term
transient
Definition
A keyword in the Java programming language that indicates that a field is not part of the serialized form of an object. When an object is serialized, the values of its transient fields are not included in the serial representation, while the values of its non-transient fields are included.
Term
try
Definition
A Java keyword that defines a block of statements that may throw a Java language exception. If an exception is thrown, an optional catch block can handle specific exceptions thrown within the try block. Also, an optional finally block will be executed regardless of whether an exception is thrown or not.
Term
void
Definition
A Java keyword used in method declarations to specify that the method does not return any value. Void can also be used as a nonfunctional statement.
Term
volatile
Definition
A Java keyword used in variable declarations that specifies that the variable is modified asynchronously by concurrently running threads.
Term
while
Definition
A Java keyword used to declare a loop that iterates a block of statements. The loop's exit condition is specified as part of the while statement.
Supporting users have an ad free experience!