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
Q21: When writing output to a file, if
Q25: Given a decimal number, the method format
Q29: Suppose str is a String variable. The
Q33: String sentence;
String str1, str2, str3, str4;
Int length1;sentence
Q33: Which statement instructs a program to run
Q34: String sentence;
String str1, str2, str3, str4;
Int length1;sentence
Q36: The class JOptionPane is part of the
Q40: String sentence;
String str1, str2, str3, str4;
Int length1;sentence
Q41: What is the output of the following
Q42: Which of the following is an area
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents