Solved

Which of the Following Messages Passed to the String Str

Question 64

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions