0
What will be the default values of all the elements of an array defined as an instance variable?
In java
2 Answers
+ 2
Depends on the type of the array you want to create. It will have the default values respective to the data type declared.
0
And If the array is an array of primitive types, then all the elements of the array will be initialized to the default value corresponding to that primitive type