Java Fundamentals
Classes and Objects
Strings
Methods
Java Syntax and Errors
100

The four main data types that we have been working with

int, double, string, and boolean 

*char is a valid answer too

100

A special class member used to initialize a new object; its name matches the class name.

What is a constructor? 

100

An object representing a sequence of characters

What is a String?

100

Method that returns a double greater than or equal to 0.0 and less than 1.0.

What is Math.random()?
100

Text in source code that is ignored by the compiler and can explain the code.

What is a comment?

200

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

200

A blueprint that defines the structure and behavior of objects.

What is a class? 

200

Joining strings or combining text with values using +

What is concatenation?

200

A variable listed in a method or constructor definition that receives a value

What is a parameter? 

200

An error caused by code that violates Java's grammar or rules.

What is a syntax error?

300

What is casting? 

Temporarily convert a value from one data type to another

300

An instance of a class that can contain data and behavior

What is an object? 

300

Method that returns the number of characters in a String.

What is length()?
300

A return type indicating that a method does not return a value.

What is void?

300

An error where code runs but produces an unintended result.

What is a runtime error?

400

What's so special about integer division? 

Decimal values are truncated meaning that answers are always integers. 

400

A variable declared in a class that stores data associated with an object.

What is an instance variable/attribute? 

400

Method that returns  the index of a character or substring, or -1 if it is not found.

What is indexOf()?

400

A method associated with the class, commonly called using ClassName.methodName(...).

What is a static/class method? 

400

A named storage location that holds a value.

What is a variable?

500

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.

500

A special value indicating that a reference does not refer to an object. 

(nothing has been instatiated) 

What is null?

500

Method that returns a portion of a String; the starting index is included and the ending index is excluded.

what is substring()?
500

Defining methods with the same name but different parameter lists.

What is method overloading?

500

An error that occurs while a program is executing.

What is a runtime error?