What are the default values of instance variables whether primitive or reference type in Java?
Answers
Answered by
0
when we haven't initialized the instance variable compiler initialized them with default value. for boolean types, that dafault value is false , for float and double types dafault values are 0.0 and for remaining privative types dafault values is 0 ....
Similar questions
Math,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
English,
1 year ago
Math,
1 year ago