`arr` is just a variable name used here to represent the ArrayList object containing Strings.
Think of `arr` as a label stuck onto your backpack (ArrayList). It helps you identify it among other bags.
Variable declaration: The process of creating a variable by specifying its type and name.
Object reference/variable assignment: Storing the memory address of an object in a variable so that it can be accessed later.
Scope: The region in which a variable is visible and accessible within a program.
Study guides for the entire semester
200k practice questions
Glossary of 50k key terms - memorize important vocab
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.