7
AssignmentMultiple Choice

New Data Types and the If Statement

Question 7 • ASC Programming, Games, Apps and Society

If you need to use a single character in a Java program, why is it important not to use a string literal?

Answer
A
A string literal is used to do numerical operations.
B
A string literal is used to initiate variable names.
C
A string literal classifies a Boolean value, 0 or 1.
D
A string literal stores sequences of characters.
Previous
Next
If you need to use a single character in a Java…