In this lesson, students will learn about the immutability of Strings as objects. Once a String object is created, it cannot be changed or manipulated. The only way to change a String value is to reassign the variable with a different String value. Students will also practice String concatenation using operators such as +
and +=
and use escape sequences such as \”
and \n
. This lesson corresponds with AP Computer Science A topic 2.6.
Students will be able to:
These are all the activities included in the lesson