Sid Kar wrote:So I've established that the difference between static methods, and class-wide methods in Java are that:
Just to be sure there is no confusion: static methods
are class methods. Static methods are for the whole class, they don't work on any particular instance of the class. Non-static methods do work on one particular instance of the class.
Sid Kar wrote:2. I can access member variables using the object.
I don't know what you mean with "using the object". In a non-static method, you can access the member variables of the object that the method was called on directly.
Sid Kar wrote:However in terms of internal memory representation, only one copy of both methods, and static methods exist. Is this not correct?
Yes, only one copy of the bytecode of the method exists in memory.