The title of this question is actually a previous examination question and I am looking for clarification / an answer to it.
Please note that I am learning Java and am becoming familiar with its syntax.
I understand that this question may have been asked before and if so can someone please show me where I may access the question if possible? Also please accept my apologies if this is the case. To show that I have been researching this area, my own understanding is that instance variables belong to the objects / instances of a certain class (template) and can be changed (mutated) within that instance / object as and when required.
A class variable is a variable that has only one copy and can be accessed but not be modified (mutated?), but is available to all classes as required?
Am I on the right track here?
Also, what exactly does the 'static' do? Is an instance of a class only static if it resides within the main instance of a class?
Many thanks.