Instance Variables

An instance variable is similar to a class variable but doesn’t specify static in its declaration. Instance variables are associated with instances of classes, so you can use them only when you create an instance of a class.

Get Java For Dummies Quick Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.