what is the difference between instance variable and reference variable?
Instance variables are declared without static keyword. Instance variables can be used only via object reference. Class variables can be used through either class name or object reference.