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 str3?
A) "First exam is on Monday."
B) "F#rst exam #s on Monday."
C) "F#rst exam is on Monday."
D) "#i### #### i###########."
Correct Answer:

Verified
Correct Answer:
Verified
Q3: String variables are reference variables.
Q9: The value of the expression Integer.parseInt("+782") is
Q36: Java provides automatic garbage collection.
Q38: What will most probably happen if you
Q39: Which of the following is the member
Q40: Suppose that you have the declaration:int num
Q41: Consider the following statements.double x;<br>String y;y =
Q44: What is the output of the following
Q46: Which package is automatically imported by the
Q48: Which of the following is an area