Which of the following is a valid statement? (i) int num = new int(67); (ii) String name = new (“Doe”); (iii) String name = “Doe”;

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)

Leave a Reply

Your email address will not be published.