Question: what is the difference between instance variable and global variable in java?
Answer: Code defined o... Java doesn't have global variables. ... Instance variables (usually called instance fields) are different. Storage is allocated for the field each time an instance of the class is created.