Multiple Choice
String sentence;
String str1, str2, str3, str4;
Int length1;sentence = "First exam is on Monday.";str1 = sentence.substring(6, 12) ;
Str2 = str1.substring(0, 4) ;
Str3 = sentence.replace('i', '#') ;
Str4 = sentence.indexOf("on") ;length1 = sentence.length() ;Based on the code above, what is the value of length1?
A) 20
B) 21
C) 24
D) 26
Correct Answer:

Verified
Correct Answer:
Verified
Q9: Which of the following is a valid
Q12: The showMessageDialog method has _ parameter(s).<br>A) one<br>B)
Q13: Which of the following outputs 56734.9875 to
Q14: String sentence;<br>String str1, str2, str3, str4;<br>Int length1;sentence
Q15: In order to use a predefined method,
Q25: Suppose that name is a String variable.
Q26: What happens when JOptionPane.PLAIN_MESSAGE is chosen as
Q43: The default output of decimal numbers of
Q47: String objects are mutable.
Q50: The class JOptionPane is part of the