Please enable JavaScript to use CodeHS

AP CSA: VAR-2.A.4

CodeHS Lessons

When an array is created using the keyword new, all of its elements are initialized with a specific value based on the type of elements— ● Elements of type int are initialized to 0 ● Elements of type double are initialized to 0.0 ● Elements of type boolean are initialized to false ● Elements of a reference type are initialized to the reference value null. No objects are automatically created

Standard
5.2 Introduction to Arrays
Standard
8.2 Introduction to Arrays
Standard
7.2 Introduction to Arrays
Standard
7.2 Introduction to Arrays