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)
C) Only (iii)
B) Only (i) and (ii)
D) Only (ii) and (iii)
Let's find answer to your question.
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)
C) Only (iii)
B) Only (i) and (ii)
D) Only (ii) and (iii)