1/18
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
implicit type conversion
A type conversion that the compiler can perform automatically such as an int to double.
type cast
A type within parenthesis, such as (int), tell the compiler to explicitly convert one type to another. double pi = 3.14; int n = (int) pi; //results in 3 in the variable n.
method call/invoking a method
Passes arguments to the method's parameters and then executes the method's statements.
argument
A value, which may be the result of evaluating an expression, that is passed to and intializes a method parameter.
identifier
A case sensitive name created by a programmer such as for a variable, method or class. Can only use A-Z, a-z, _, $ or 0-9 and must not start with a digit. Typically don't use $ and use _ for constants.
variable and method naming convention
camelCaseFirstCharacterLowerCase
class naming convention
CamelCaseFirstLetterUpperCase
constant naming convention
NAME_IN_UPPERCASE_WITH_UNDERSCORES
escape sequence
A 2 character sequence starting with \ that represents a special character such as \n, \t, \\, or \".
keyword
A reserved word in a programming language such as int, double, class, or public.
statement
A standalone element of a programming language that expresses an action.
expression
A section of code containing values, variables, and methods that evaluates to a value.
variable declaration
A statement that declares a new variable specifying a data type and name.
primitive data types
byte, short, int, long, float, double, char and boolean.
literal
Data in a program such as 8, 3.14, 'A' or "hello" that appears in an expression.
integer literal
A whole number such as -5 or 10.
floating-point literal
A number with a decimal point such as 3.14, 3.14F or in scientific notation 6.02e23.
char literal
A character in a program within ' ' such as 'A', 'b' or '\u0043'.
final
Keyword in Java that, for a variable, denotes that the value of the variable won't change once set, it is constant.Example: final int MAX_ROWS = 5;