Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1106 :

Posted: Wed Dec 31, 2014 11:56 pm
by coder007
Note, when we try to access a zero-element of array of length zero:

Code: Select all

int[] arrZero = new int[0];
System.out.println("arrZero[0] = " + arrZero[0]);
than in runtime it throws an exception java.lang.ArrayIndexOutOfBoundsException.

Re: About Question enthuware.ocajp.i.v7.2.1106 :

Posted: Thu Jan 01, 2015 1:54 am
by admin
That is correct.

Re: About Question enthuware.ocajp.i.v7.2.1106 :

Posted: Tue Feb 14, 2023 7:24 am
by Deleted User 6318
A reference being null or pointing to null
are those synonyms or two different things?

Re: About Question enthuware.ocajp.i.v7.2.1106 :

Posted: Tue Feb 14, 2023 9:22 am
by admin
same thing.