Multiple Choice
Which of the following messages passed to the String str could throw a StringIndexOutOfBoundsException?
A) str length() ;
B) str charAt(2) ;
C) str replace('a', 'A') ;
D) str equals(str) ;
E) Any of these could throw a StringIndexOutOfBoundsException
Correct Answer:

Verified
Correct Answer:
Verified
Q17: Explain or provide an example showing how
Q18: The difference between the throw reserved word
Q19: A try statement must have at least
Q20: The term "exception propagation" means<br>A) an exception
Q21: A finally clause will execute<br>A) only if
Q23: Explain or provide an example showing how
Q24: An exception can produce a "call stack
Q25: Example Code Ch 11-1<br>public static void main(String[]
Q26: System.err is a(n)<br>A) input stream<br>B) GUI dialog
Q27: Why might you want to create your