This site is 100% ad supported. Please add an exception to adblock for this site.

Java Keywords

Terms

undefined, object
copy deck
A Java keyword used in a class definition to specify that a class is not to be instantiated, but rather inherited by other classes.
abstract
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.
break
A Java keyword that defines a group of statements to begin executing if a value specified matches the value defined by a preceding switch keyword.
case
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.
catch
A Java keyword used to declare a a single 16-bit Unicode character variable.
char
A Java keyword used to resume program execution at the end of the current loop. If followed by a label, it resumes execution where the label occurs.
continue
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, this keyword will be executed.
default
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.
do
A Java keyword used to define a a double-precision 64-bit IEEE 754 floating point variable.
double
A Java keyword used to execute a block of statements in the case that the test condition with the if keyword evaluates to false.
else
A Java keyword used to declare an enumerated type, whose legal values consist of a fixed set of constants.
enum
A Java keyword used to define an entity once and cannot change it or derive from it later.
final
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.
finally
A Java keyword used to define a a single-precision 32-bit IEEE 754 floating point number variable.
float
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.
for
A Java keyword used to conduct a conditional test and execute a block of statements if the test evaluates to true.
if
A Java keyword included in the class declaration to specify any interfaces that are used by the current class.
implements
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.
import
A Java keyword used to define a 32-bit signed two's complement integer variable.
int
A Java keyword used to define a collection of method definitions and constant values. It can be implemented by other classes with the "implements" keyword.
interface
A Java keyword used to define a 64-bit signed two's complement integer variable.
long
A Java keyword that is used in method declarations to specify that the method is not implemented in the same Java source file, but rather in another programming language.
native
A Java keyword used to create an instance of a class.
new
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
private
A Java keyword used in a method or variable declaration. It signifies that the method or variable can only be accessed by elements residing in its class, subclasses, or classes in the same package.
protected
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.
public
A Java keyword that causes the code to exit from the current method, and the control flow returns to where the method was invoked.
return
A Java keyword used to define a 16-bit signed two's complement integer variable.
short
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
A Java keyword used to access members of a class inherited by the class in which it appears.
super
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.
switch
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.
synchronized
A Java keyword that can be used to represent an instance of the class in which it appears. It can be used to access class variables and methods.
this
A Java keyword that enables the programmer to _____ an exception at that point in the code. The exception will be caught by the nearest try-catch clause that can catch that type of exception.
throw
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.
throws
A keyword in the Java programming language that indicates that a field is not part of the serialized form of an object.
transient
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 that block. Also, an optional finally block will be executed regar
try
A Java keyword used in method declarations to specify that the method does not return any value. It can also be used as a nonfunctional statement.
void
A Java keyword used in variable declarations that specifies that the variable is modified asynchronously by concurrently running threads.
volatile
A Java keyword used to declare a loop that iterates a block of statements. The loop's exit condition is specified as part of this statement.
while

Deck Info

40

permalink