A method with the same name as the class that initializes the instance variables of an object of the class when the object is instantiated.
Back
Method
Front
A program module that contains a series of statements that carry out a task.
Back
double
Front
4 bytes; 6 significant digits
Back
char
Front
single character; 2 bytes
Back
Primitive
Front
int, float, double, byte, char, boolean
Back
class
Front
a user defined blueprint or prototype from which objects are created
Back
int
Front
4 bytes -2,147,483,648 to 2,147,483,647
Back
public versus private
Front
public means you can access it anywhere while private means you can only access it inside its own class
Back
string
Front
A sequence of characters
Back
application versus applet
Front
applet is a small java program that can be executed by a Java-compatible web browser while the application is a standalone program that can directly run on the machine
Back
scope
Front
the lifetime and accessibility of a variable
Back
header of method
Front
where the return type, name, and parameter list of a method are declared
Back
byte
Front
8 bits
Back
void
Front
specifies that the method does not return any type
Back
method declaration
Front
The first line of a method, which contains the method name, access level, return type, and parameters, if any.
Back
method call
Front
A command to execute another method, which causes all of the statements inside that method to be executed.
Back
comment (single line & multi-line)
Front
Javadoc /*..../
Multi-line / .... /
Single line (or inline) //
Back
constructor call
Front
memory for the object is allocated in the memory
Back
float
Front
A native type representing rational numbers to limited precision. 4 bytes; 6 significant digits
Back
parameter(s) of method
Front
( )
Back
object instantiation
Front
creating a new object using the "new" reserved word.
the object is created with a variable referencing that object.
Back
method return type
Front
Defines and constrains the data type of the value returned from a method.
Back
literal
Front
syntactic representations of boolean, character, numeric, or string data
Back
method return variable
Front
the variable returned by the computer
Back
assignment
Front
=
Back
boolean
Front
True/False
Back
body of method
Front
the actions performed by the method
Back
variable declaration
Front
A statement that creates a variable and its associated attributes but doesn't necessarily allocate storage for variables or define an implementation for methods.