Prev Next

Java / Arrays

The default value of the array in Java.

When we create a new array, it is always initialized with the default values. The default values of the array are:

Array data-typeDefault value
byte, short, int, and long0
float and double0
Booleanfalse
Object null

More Related questions...

Show more question and Answers...


Comments & Discussions