Multiple choice technology programming languages

Choose the correct statement from the given choice?

  1. Arrays in Java are essentially objects

  2. It is not possible to assign one array to another. Individual elements of array can however be assigned.

  3. Array elements are indexed from 1 to size of array

  4. If a method tries to access an array element beyond its range, a compile warning is generated.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Arrays in Java are objects - they're dynamically allocated, have a length field, and inherit from Object class. Options B, C, and D are false: arrays of the same type can be assigned (reference copy), indexing starts at 0 not 1, and out-of-range access throws ArrayIndexOutOfBoundsException at runtime, not a compile warning.