posted 24 years ago
Hi,
As I'm a beginner, I'm not still clear with ur explaination.....you've told "The second program attempts to access the instance variable 'x' as a static variable"
I don't understand the part "static variable" in ur explaination. A\as I'm accessing the instance variable x directly by the class name, do you mean that java will interpret that as a 'static variable', and the how come, if i access the same variable x using an instance of that class "nt", java doesn't say any error messages??
Please, can you explain??
Vijay