In Java (and actually most programming languages) the [] is reserved for arrays and we refer to the symbols [] by the name of: braces brackets parenthesis index
Added by Cheryl S.
Close
Step 1
We commonly refer to these symbols as "brackets" or "square brackets". Braces, on the other hand, are used to define blocks of code, such as in if statements, loops, and method bodies. Show more…
Show all steps
Your feedback will help us improve your experience
Aaron Goree and 83 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
A common error by beginning programmers is to forget that array subscripts start with ________. a. 0 b. the number of elements in the array c. spaces d. 1
Haricharan G.
The value contained within the square brackets that is used to indicate the length of the array must be a(n): a. class b. double c. string d. integer e. none of the above
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD