Java: Chapter 2 Review

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

shoeSize = 9;

example of a valid assignment statement in Java

subtraction

According to the rules of operator precedence, when division occurs in the same arithmetic statement as __________, the division operation always takes place first.

backslash

An escape sequence always begins with a(n):

byte

Data type that can store a value in the least amount of memory:

char aChar = '*';

Example of a correct assignment statement for a character data type:

==

The "equal to" relational operator is:

=

The assignment operator in Java is:

float or double

What are two data type variables that can hold values with decimals:

type cast

What do you use to explicitly override an implicit type:

constant

When data cannot be changed after a class is compiled, the data is:

implicitly converts the values to a unifying type

When you perform arithmetic with values of diverse types, Java:

System.out.println();

Which is a correct statement to prompt the program to output a line:

an assigned value

Which of the following elements is not required in a variable declaration: a type, an identifier, an assigned value, or a semicolon

sector

Which of the following is not a primitive data type in Java: boolean, byte, int, or sector

boolean

Which type of variable can hold the value 'true' or 'false':


संबंधित स्टडी सेट्स

Math/Chem Associate Safety Professional Cert

View Set

Analytic Procedures for Bacteriology-Blood and Bone Marrow

View Set

Succeeding in Your Online Course

View Set