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 the above could throw a StringIndexOutOfBoundsException
Correct Answer:

Verified
Correct Answer:
Verified
Q17: Write a set of code that will
Q58: By now you almost certainly have run
Q60: The difference between a scroll pane and
Q61: Write code to display the contents of
Q62: Use the code below to answer the
Q63: NullPointerException and ArithmeticException are both derived from
Q65: A combo box allows the user to
Q66: Which statement is True about BufferedWriters<br>A) BufferedWriters
Q67: The Scanner class provides an abstraction for
Q68: The following defines a new Exception called