Hello frdz, I want to know which compiler version should be used for compiling the program related to the exam 1Z0-851 (Java Standard Edition 6 Programmer Certified Professional).
Oh. *instance* variable. I didn't read carefully (or think). I was thinking about static class variables. Yeah, instance variables can't be static.
But as you said the compiler version should be 1.6. When I am compiling the program with the javac 1.6.0_45, compiler doesn't showing any error. Why?
Aabhas Gupta wrote:
But as you said the compiler version should be 1.6. When I am compiling the program with the javac 1.6.0_45, compiler doesn't showing any error. Why?
Well, it would help if you showed us what code you actually compiled....
Aabhas Gupta wrote:
But as you said the compiler version should be 1.6. When I am compiling the program with the javac 1.6.0_45, compiler doesn't showing any error. Why?
Well, it would help if you showed us what code you actually compiled....
Henry
Simply I have created a class and declared the static variable as static int a;