Which of the following options are invalid variable names in Java?
Answer options
A
$char
B
1MyNumber
C
case
D
_int
Correct answer: 1MyNumber, case
Explanation
Quick AnswerThe correct answer is 1MyNumber, case because it directly addresses the core logic of Practice Set 2.
Java variables cannot start with a number or use reserved keywords like 'case'.