Save
COM PROG
MOD 4
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Rose 0801
Visit profile
Cards (5)
Array
stores multiple data items of the samedatatype,inacontiguous block of memory, divided into a number of slots
we must create the array and specify its length with a
constructor statement.
This process in Java is called
instantiation
(the Java word for creates).
An
index number or subscript
is assigned to each member of thearray, allowing the program and the programmer to accessindividualvalues when necessary.
Index numbers are always
integers