Data Types
Operators
Expressions
Statements
Variables
100
Java supports 8 of these.
What are primitive data types?
100
?:
What is the conditional operator?
100
Write this when you want to perform a calculation.
What is an arithmetic expression?
100
Creates a variable for the first time.
What is a declaration statement?
100
It's value remains the same throughout the program.
What is a constant?
200
There are 4 primitive data types for this kind of numeric data.
What is integer?
200
This binary operator gives the remainder from an integer division.
What is the modulus operator?
200
Write this when you want to test the values of variables.
What is a relational expression? What is a logical expression?
200
Always contains an equal sign.
What is an assignment statement?
200
Also known as a static field.
What is a class variable?
300
Store a person's name using a variable of this non-primitive data type.
What is String?
300
+=, *=, /=
What are compound assignment operators?
300
Two relational expressions joined with a logical operator.
What is a compound condition?
300
System.out.println("Hello world"); is an example of this type of statement.
What is an output statement?
300
Data item passed to a method.
What is a parameter?
400
Can have only one of two possible values, true or false.
What is boolean?
400
This operator is used to check if two variables have the same value.
What is the equality operator?
400
Another name for a relational expression.
What is conditional expression?
400
In order to write an input statement, this item must be imported into your Java program.
What is java.util.Scanner?
400
Holds an object's state.
What is an instance variable?
500
Casting a numeric data type with larger range to one of smaller range.
What is narrowing a type?
500
&&, ||, !
What are logical operators?
500
Relational expressions evaluate to one of these.
What is true or false?
500
int num = sn.nextInt(); is an example of this type of statement.
What is an input statement?
500
It's value is known only within a method.
What is a local variable?
Continue
ESC
Reveal Correct Response
Spacebar
M
e
n
u
Team 1
0
+
-
Java Basics
No teams
1 team
2 teams
3 teams
4 teams
5 teams
6 teams
7 teams
8 teams
9 teams
10 teams
Custom
Press
F11
Select menu option
View > Enter Fullscreen
for full-screen mode
Edit
•
Print
•
Download
•
Embed
•
JeopardyLabs