Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - In java, I want to put an empty element in an integer array (convert it into an integer). Can it be realized? Please ask the master for advice.
In java, I want to put an empty element in an integer array (convert it into an integer). Can it be realized? Please ask the master for advice.
No, java is an object-oriented programming language. If the contents of the plastic array are not initialized, then every item in it is 0.

In c++, after data initialization, if there is no initial value, there will be different values, depending on what is stored in that memory at that time, but it seems that the values of the debug version and the release version are different. It is said that the release version is initialized to 0, so it must be initialized.