How do you create an in-line comment?
With double slashes
What is the difference between print() and println()?
println() includes a return to a new line
What happens when you attempt to divide by zero?
An ArithmeticException
A finite set of instructions that accomplish a task
Algorithm
The special character that signifies the end of an instruction.
The semicolon ;
How do you create a multi-line comment?
Open the comment with /* and close with */
An instance of a Class
Object
The program crashes while running.
Runtime error
The specific value provided when a method or constructor is called
Argument
The name of this operator: %
Modulo
What is the escape sequence?
Name the three primitive datatypes we have discussed.
int, double, boolean
The program compiles and runs without crashing, but it doesn’t do what is expected.
Logic error
Used to call a method in a class
Dot Operator
What is the return on this: 10 % 5?
0
The rules regarding the correct way to type the code so the program will run.
Syntax
A way to tell a variable to temporarily become a different datatype.
Casting
What would happen if you used "public" as a variable name?
A Syntax error
Defines the type of value to receive when a method or constructor is called
Parameter
This binary number in Base 10: 1001
9
What is the concatenation operator?
The + sign
String phrase = "Be prepared.";
String result = phrase.substring(11);
System.out.print(result);
.
You forget a semicolon at the end of a statement
Compiler error
Consists of a name and parameter list
Method Signature
The convention of naming with a lowercase letter and an uppercase letter to start a new word, such as namingStyle?
Camel back