Instance variables in a class are always initialized, even if no constructor exists. The compiler automatically initializes them when it creates an instance. If you have an initial value specified the complier will use that for the initialization. If you don’t have an initial value, it will use defaults as listed below.

  • Numerical values — 0
  • Boolean values — false
  • Object references — null