What is the default initial value of elements of an array?

The default initial value of elements of an array is 0 for numeric types and false for boolean. We can demonstrate this: When you run the program, the output will be: There is a better way to access elements of an array by using looping construct (generally for loop is used).
For More Information Please Refer:
https://www.programiz.com/java-programming/arrays
You May Also Like to Read: