Computer Science, asked by narayanaraopkl3494, 1 year ago

What are the default values of instance variables whether primitive or reference type in Java?

Answers

Answered by jaanj
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