⏱ 20:00
AP CSA Exam Reference Guide: String Objects & Built-In Methods
AP Computer Science A Standards: The String class provides methods for examining and manipulating text. Strings are immutable, meaning they cannot be changed once created. Important methods include length(), substring(), indexOf(), equals(), and compareTo(). String concatenation dynamically joins strings and primitives. Attempting to access indices outside the valid range (0 to length - 1) throws a StringIndexOutOfBoundsException.
Please wait while the test module loads...

