LARA

Array Manipulation

Consider the following (high-level) JVM instructions from JVM Spec:

  • newarray
  • anewarray
  • iaload
  • iastore
  • arraylength

Similar remarks apply as for general objects. Java arrays contain information about

  • the content of the array
  • the size of the array, which enables run-time checking of array bounds accesses