Explain Default initial value

Default initial value: It is the default value of any variable not explicitly initialized whenever it is declared. The fields of numeric primitive types contain the value zero by default, Boolean variables encompass the value false, char variables encompass the value \u0000 and object references contain the value null. The preliminary values of local variables are undefined, except explicitly initialized.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.