Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What is the default value of one-dimensional array of type int in JAVA?
What is the default value of one-dimensional array of type int in JAVA?
The default value of the array on the heap is1(int a [] from new = new int [3]; )

Things on the stack are random and cannot be used to calculate and assign values to other variables without manual initialization (int a [10]; )