Java Basics
Class Act
Loop-de-Loop
Take Me Array From Here
Mystery Methods
100

This keyword defines a method that doesn’t return a value.

What is void?

100

This keyword is used to create a new object.

What is new?

100

This loop runs as long as the condition remains true, and checks the condition before each iteration.

What is a while loop?

100

The index of the first element in any Java array.

What is 0?

100

This method returns the number of characters in a string.

What is length()?

200

Java is known for using this programming paradigm.

What is object-oriented programming?

200

This type of method belongs to the class rather than an instance.

What is a static method?

200

This loop is best used when you know exactly how many times to repeat.

What is a for loop?

200

This exception is thrown when you try to access an index that doesn’t exist.

What is ArrayIndexOutOfBoundsException?

200

This method converts a string to all uppercase letters.

What is toUpperCase()?

300

The name of the method that serves as the entry point of every Java program.

What is main?

300

This special method often comes first when designing a class.

What is a constructor? 

300

This keyword exits a loop prematurely.

What is break?

300

You declare an array of 10 integers named "nums" like this.

What is int[] nums = new int[10];?

300

This method checks if two strings are exactly equal.

What is equals()?

400

This type holds whole numbers.

What is int?

400

This type of method lets you access the value of a private field.

What is a getter?

400

This keyword skips the rest of the current iteration.

What is continue?

400

You use this loop to iterate through each element in an array without using indices.

What is a for-each loop?

400

This method finds the position of a character or substring.

What is indexOf()?

500

This symbol is used to indicate a single-line comment.

What is //?

500

This principle hides data inside a class and makes it accessible through methods.

What is encapsulation?

500

This type of loop runs at least once, regardless of the condition.

What is a do-while loop?

500

This method is used to sort an array.

What is Arrays.sort()?

500

This method extracts a portion of a string.

What is substring()?

M
e
n
u