Computer Applications

In Java, for an array having N elements, legal subscripts are :

  1. 0 to N
  2. 0 to N-1
  3. 1 to N
  4. 1 to N - 1

Java Arrays

29 Likes

Answer

0 to N-1

Reason — In Java, for an array having N elements, the subscripts start from 0 and go on till N - 1 (size - 1).

Answered By

18 Likes


Related Questions