Data Types
Math
String Methods
Objects
Miscellaneous
100

Variables of type double are used to store __________ values.

decimal

100

The __________ operator is used to find the remainder in division.

modulus - %

100

To find the length of a String, you use the __________ method.

.length()

200

The smallest integer data type in Java is __________.

byte

200

Dividing two integers in Java results in __________ division.

integer

200

The __________ method is used to compare the contents of two Strings for equality.

.equals()

200

Objects are stored as __________ in memory, unlike primitive types.

references

200

What is the output?

System.out.println(10 + 30 + " " + 10);

40 10

300

Strings in Java are __________, meaning their contents cannot be changed once created.

immutable

300

Substring can take __ or __ values.

char and string

300

A __________ is a special method used to create and initialize an object.

constructer

300

The keyword used to declare a constant in Java is __________.

final

500

Name both primitive data types in Java that use 16 bits of memory.

char and short

500

This error occurs when attempting to store a value too large for a variable’s data type, such as assigning 128 to a byte.

overflow