Multiple Choice
Which of the following is a valid statement? (i) int num = new int(67) ; (ii) String name = new ("Doe") ; (iii) String name = "Doe";
A) Only (i)
B) Only (i) and (ii)
C) Only (iii)
D) Only (ii) and (iii)
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q18: In Java, all variables declared using a
Q19: The dot (.) operator is also called
Q20: Based on the code above, what is
Q21: Which package is automatically imported by the
Q22: In a format specifier, if the flag
Q24: Given int num; the value of num
Q25: Suppose that name is a String variable.
Q26: What happens when JOptionPane.PLAIN_MESSAGE is chosen as
Q27: Suppose str is a String variable. The
Q28: When writing output to a file, if