What happens if you try to access an index out of bounds in a string?
Correct answer
Throws StringIndexOutOfBoundsException
Explanation
Accessing an invalid index in a string throws StringIndexOutOfBoundsException.
Update: Admin added a tag on this question
Topics
By Admin · · 29 views