Multiple Choice
Which of the following is a valid Java statement?
A) String str = 'John Doe';
B) string str = "John Doe";
C) string str = 'John Doe';
D) String str = "John Doe";
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q51: All Java statements end with semicolons.
Q52: To compile a program named First, use
Q53: Which of the following is not a
Q54: Which of the following does not describe
Q55: When the + operator is used with
Q57: Assuming that pay has been declared a
Q58: In Java, the beginning of a comment
Q59: In Java, _ must be declared before
Q60: A Java program must have at least
Q61: Named constants are initialized with a value,