Instance fields

The variables which are declared with the class without static modifier called instance fields or non-static variables.

For instance fields memory is always allocated with in the object in heap memory. Instance variables can be referred using object reference. By default instance field is initialised by their corresponding data type values of default value.

Leave a comment