The four main data types that we have been working with
int, double, string, and boolean
*char is a valid answer too
A special class member used to initialize a new object; its name matches the class name.
What is a constructor?
An object representing a sequence of characters
What is a String?
Method that returns a double greater than or equal to 0.0 and less than 1.0.
Text in source code that is ignored by the compiler and can explain the code.
What is a comment?
The difference between System.out.println() and System.out.print()
println() creates a new line after printing
print() displays info without creating a new line after
A blueprint that defines the structure and behavior of objects.
What is a class?
Joining strings or combining text with values using +
What is concatenation?
A variable listed in a method or constructor definition that receives a value
What is a parameter?
An error caused by code that violates Java's grammar or rules.
What is a syntax error?
What is casting?
Temporarily convert a value from one data type to another
An instance of a class that can contain data and behavior
What is an object?
Method that returns the number of characters in a String.
A return type indicating that a method does not return a value.
What is void?
An error where code runs but produces an unintended result.
What is a runtime error?
What's so special about integer division?
Decimal values are truncated meaning that answers are always integers.
A variable declared in a class that stores data associated with an object.
What is an instance variable/attribute?
Method that returns the index of a character or substring, or -1 if it is not found.
What is indexOf()?
A method associated with the class, commonly called using ClassName.methodName(...).
What is a static/class method?
A named storage location that holds a value.
What is a variable?
What is declaration and initialization?
(Hint: variables)
Declaration - A statement that creates a variable with a specified type and name.
Initialization - Giving a variable its initial value.
A special value indicating that a reference does not refer to an object.
(nothing has been instatiated)
What is null?
Method that returns a portion of a String; the starting index is included and the ending index is excluded.
Defining methods with the same name but different parameter lists.
What is method overloading?
An error that occurs while a program is executing.
What is a runtime error?