As I read from various Java book and tutorials, variables declared in a interface are constants and can\'t be overridden.
I made a simple code to test it
<
You did not override the variable, you shadowed it with a brand-new instance variable declared in a more specific scope. This is the variable printed in your printx method.
printx