Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/74

Click to flip

74 Cards in this Set

  • Front
  • Back
get
Invalid
strictfp
Valid
A class declaration keyword.
Forces strict floating-point calculation to match versions of Java earlier than Java 2. Rarely needed.
final
Valid
A class, method and variable modifier.
Final classes may not be subclassed or extended. Final variables cannot be changed once a value is assigned to them. Final methods may not be overridden, if their containing class is extended.
while
Valid
A loop constructor.
Evaluates a boolean expression, and executes a block of code repeatedly while it is true. If the expression is always false, the loop never executes even once.
package
Valid
else
Valid
A conditional control statement.
In the case of an 'if' statement, indicates the alternative block of code to execute if the conditional is false.
end
Invalid
for
Valid
A loop control statement.
A 'for' loop uses a conditional expression to control the number of times a block of code is executed, while changing the value of a common variable each time.
this
Valid
import
Valid.
Used at the beginning of a class, this references any packages that will be depended on.
abstract
Valid
Type: A class and method modifier.
Abstract methods may not be instantiated, but they can be extended. In fact, they MUST be extended to be used.
char
Valid
A primitive type.
One Unicode character, or two bytes. Unsigned.
frodo
Invalid.
Although temporarily possessor/bearer of the One Ring of Power, young Mr. Baggins is not a reserved Java keyword. Instantiating him while he is still inpossession of the One Ring may lead to dire peril.
return
valid
synchro
Invalid
The most similar keyword is 'synchronized'.
super
valid
volatile
Valid
transient
valid
thrown
invalid
split
invalid
constant
Invalid
The most similar keyword is 'const'.
tostring
Invalid
There is a method defined in many classes, 'toString()', that renders class contents as a String, but it is not a keyword.
regular
Invalid.
This is not similar to any Java keyword. What were you thinking?
void
Valid
A return type for methods.
Using void in a method definition indicates that no value will be returned by that method.
classes
Invalid
The closest similar keyword is 'class'. Although 'classes' is used as a method to return collections in some applications in Java and Javascript, don't count on it.
try
Valid
An exception-handling code block constructor.
Normally executing code may be put into a 'try' block, while code to handle any exceptions thrown during the execution of that block may be put into its corresponding 'catch' block. A 'finally' block may also be created to define code that must executed no matter what.
throw
Valid
A statement that forcibly throws a defined exception.
byte
Valid
A primitive type.
An integral (integer) type, consisting of 1 byte, or 8 bits.
continue
Valid
A loop control statement.
When a continue statement is encountered in a loop, any remaining code in the loop block is skipped and control goes to the conditional controlling the loop, starting the loop at the next interation.
class
Valid
A class declaration, to be used with modifiers and arguments.
breaker
Invalid
The most similar Java keyword is 'break'.
extend
Invalid.
The most similar keyword is 'extends'.
boolean
Valid
A primitive type.
A logical (true/false), 1 bit.
protected
Valid
An access modifier.
Applies to methods and variables. Protected allows access only within a class's package, and any subclasses of that class
true
valid
begin
invalid
wend
invalid
put
invalid
bool
Invalid
The most similar java keyword is 'boolean'.
synchronized
Valid
infinity
Invalid
This is sometimes used as part of a constant declaration, but it is not a reserved word.
instanceof
Valid
A logical operator.
Used to test whether an object is an instance of a specified type.
string
Invalid
'String' is the name of a commonly-used class, but it is not a reserved keyword.
static
Valid
A type of modifier. Applies to methods and variables.
A static variable is only instantiated once, no matter how many instances are made of its containing class.
float
Valid
A primitive type.
A floating-point type, consisting of 4 bytes, or 32 bits.
null
Valid
A non-value value, used to indicate that an object name does not currently refer to any instantiated object.
new
Valid
Used to instantiate objects.
tron
Invalid.
Sometimes referred to as 'trace on' command in certain debuggers, it is not a reserved Java keyword.
short
Valid
A primitive type.
An integral (integer) byte, consiting of only two bytes (16 bits).
interface
Valid
An interface type declaration.
Declares an interface, or an abstract class with no method definitions.
extends
Valid
A class declaration modifier.
With the use of 'extends', a class definition creates a subclass of an already existing class, inheriting its methods and properties.
reference
Invalid
'Reference' is not a reference to anything.
double
Valid
A primitive type.
A floating-point type, consisting of 8 bytes, or 64 bits.
do
Valid.
A loop constructor.
Evaluates a boolean expression at the end of a block of code (using a 'while' test), and executes that block of repeatedly while it is true. The loop code always executes at least once, before the expression is evaluated.
goto
Valid
An unused word.
There are other ways to implement a 'goto', and the authors of Java didn't want us to use this word.
const
Valid
Reserved but not used. Perhaps you think it means something.
implements
Valid
A class declaration keyword.
Used after the class name to reference an interface. The class must then define any interface methods to be used.
false
Valid
A boolean value.
native
Valid
A method declaration modifier.
Declaring a method native will link that method to external (native to another language) code. The method is declared with no body, and then static code may be used to link to the associated library.
if
Valid
A conditional control statement.
Uses a conditional to decide whether or not to execute a block of code.
long
Valid
A primitive type.
An integral (integer) type, consisting of 8 bytes or 64 bits.
ref
Invalid
'Ref' is similar to 'reference', but neither is a valid keyword.
private
Valid
An access modifier.
Applies to methods, variables and inner classes. A private variable or method may only be used within its class instance.
int
Valid
A primitve type.
An integral (integer) type, consisting of 4 bytes, or 32 bits.
case
Valid
A label for indicating blocks of code within a switch block.
A case label may use constants or literals of type byte, short, char or int. A case block is terminated by a break statement.
proto
Invalid
Although a keyword in some other languages, it is not a Java reserved keyword.
switch
Valid
A selection construct.
switch() is passed an integer value to select among several blocks of code for execution. Unlike other languages, switch will not accept strings.
public
Valid
An access modifier.
Applies to classes, methods and variables. Making an object public allows it to be accessed and/or modified without restriction.
default
Valid
Not an access modifier.
This is the access level given when no other access modifier is provided.
throws
Valid
A declaration of exceptions thrown.
Java requires any method that may throw an exception to state the exceptions it may throw.
finally
Valid.
An exception-handling code block constructor.
Normally executing code may be put into a 'try' block, while code to handle any exceptions thrown during the execution of that block may be put into its corresponding 'catch' block. A 'finally' block may also be created to define code that must executed no matter what.
catch
Valid.
An exception-handling code block constructor.
Normally executing code may be put into a 'try' block, while code to handle any exceptions thrown during the execution of that block may be put into its corresponding 'catch' block. A 'finally' block may also be created to define code that must executed no matter what.
regexp
Invalid
A keyword for a regular expression object in some other languages, but not in Java.
foreach
Invalid
In other languages, foreach will interate through a list of values within a code block, but not in Java.