AP® Computer Science A glossary
String
Course: AP® Computer Science A Shows up in: Unit 1: Using Objects and Methods
A class whose objects hold a sequence of characters. String is a reference type in java.lang, and String objects are immutable.
Appears in the course and exam description (CED): 1.15.A.11.15.A.2
Create a String with a string literal ("hi") or the constructor (new String("hi")). Indices run from 0 to length() - 1.
String team = "Falcons";
System.out.println(team.length());
Output:
7 Learn it properly, with a checkpoint 1.15 String Manipulation