Which of these is an incorrect string literal?
A. "Hello World"
B. "Hello\nWorld"
C. "\"Hello World\""
D. "Hello
world"
Answer: Option D
A. "Hello World"
B. "Hello\nWorld"
C. "\"Hello World\""
D. "Hello
world"
Answer: Option D
Which of the following is not a valid identifier for a Java variable?
A. my_var
B. _myVar
C. 3rdVar
D. $var
Join The Discussion