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-type | Default value |
| byte, short, int, and long | 0 |
| float and double | 0 |
| Boolean | false |
| Object | null |
More Related questions...