Java Software Development
Data, Variables, and Input
Methods, Objects, and Java Libraries
Boolean Logic & Decisions
Random :)
100

In Java, every program starts running in this special method.

What is the main method?

100

In Java, you must declare a variable’s ____ before you can use it.

What is the data type?

100

A method declared with the return type void does this instead of sending a value back to the caller.

What is returns nothing?

100

Java’s data type that can only store true or false.

What is boolean?

100

This method is used to find the position of a character or substring inside a String.

What is indexOf()?

200

This symbol must appear at the end of most Java statements, and forgetting it is a very common

What is a semicolon (;)?

200

This Java class is used to read user input from the console using System.in

What is Scanner?

200

The symbol used to access an object’s fields and methods, like in calc.findTotal()

What is the dot operator (.)?

200

The correct way to compare the contents of two Strings (not their memory locations).

What is .equals()?

200

When the Java compiler translates your readable source code into machine-executable bytecode, these specific lines of text are completely removed and ignored.

What are Comments?

300

In the Spiral Model of development, this step is where you figure out what the program should do and what problem it is solving.

What are Requirements?

300

Java variable names cannot start with a number and cannot use reserved words — these reserved words are called ____.

What are keywords?

300

Creating an object using the new keyword is called this.

What is instantiating an object?

300

The Java decision structure that runs one block when the condition is true and a different block when it’s false.

What is an if/else statement?

300

This kind of method belongs to the class itself and can be called without creating an object.

What is a static method?

400

A debugging tool that pauses program execution so you can inspect what your code is doing at a specific line.

What is a breakpoint?

400

This keyword makes a variable unchangeable after assignment, and its names are written in ALL_CAPS by convention.

What is final?

400

The variables listed in a method’s definition inside the parentheses are called these.

What are parameters?

400

This keyword is typically placed at the end of each switch case to prevent unintended execution of the next case.

What is break?

400

This Random class feature allows you to generate the same sequence of numbers repeatedly for testing.

What is a seed?

500

In object-oriented programming, this is the blueprint for creating objects and defines their properties and behaviors.

What is a class?

500

When you convert a String like "100" into an int in Java, you use this method from the Integer class.

What is Integer.parseInt()?

500

This statement lets you use a class like Scanner without writing its fully qualified name java.util.Scanner every time.

What is an import statement?

500

These two operators are short-circuit operators, meaning Java may skip evaluating the right side.

What are && and ||?

500

This operator can replace a simple if/else and must return values of the same type from both possible outcomes.

What is the ternary operator?