Solved

Which of the Following Is a Valid Java Statement

Question 56

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions