Multiple Choice
What is the value of str after the following code has been executed?
String str;
String sourceStr = "Hey diddle, diddle, the cat
And the fiddle";
Str = sourceStr.substring(12,17) ;
A) diddle
B) diddl
C) didd
D) iddle
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q17: When working with the String and StringBuilder
Q18: If a non-letter argument is passed to
Q19: Which of the following import statements is
Q20: Which of the following statements will convert
Q21: Given the following, which of the statements
Q23: What are the tokens in the following
Q24: The String class's _ method accepts a
Q25: If a non-letter is passed to the
Q26: The _ method of the String class
Q27: The _ character appears at the end