You are here

Array Types

15 January, 2016 - 09:02
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at http://cnx.org/contents/402b20ad-c01f-45f1-9743-05eadb1f710e@37.6
  • An array type is written as the name of an element type followed by one or more empty pairs of square brackets.
    • For example, int[] is the type corresponding to a one-dimensional array of integers.
  • An array's length is not part of its type.
  • The element type of an array may be any type, whether primitive or reference, including interface types and abstract class types.