java: primitive arrays -- are they initialized?

Posted by Jason S on Stack Overflow See other posts from Stack Overflow or by Jason S
Published on 2010-05-31T15:39:37Z Indexed on 2010/05/31 15:42 UTC
Read the original article Hit count: 162

Filed under:
|

If I use a statement in my code like

int[] a = new int[42];

does it initialized the array to anything in particular? (e.g. 0) I seem to remember this is documented somewhere but I am not sure what to search for.

© Stack Overflow or respective owner

Related posts about java

Related posts about arrays