posted 19 years ago
My compiler, javac 1.4.2, gives an error when asked to "System.out.print(l.k)".
I can comment out the instance variable, in which case "System.out.print(k)" prints "0", or I can create an instance of the class in "main()", call it "I", and "System.out.print(I.k)" prints "1". So, I would say the correct answer, in 1.4, is "Compiler Error".