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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
coder007
Posts: 25
Joined: Wed Dec 17, 2014 9:29 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

That is correct.
If you like our products and services, please help us by posting your review here.

noeloo
Posts: 61
Joined: Sat Feb 15, 2020 8:56 am
Contact:

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

Post by noeloo »

A reference being null or pointing to null
are those synonyms or two different things?

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

same thing.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests