int i = 3; { print(i); // java won't compile, C prints "3", JavaScript print "undefined" int i = 5; print(i); // java won't compile, C prints "5", JavaScript print "5" } print(i) class X { static int i = 0; main() { int j = 1; { print(i); int i = 5; // local variable can hide static class variable int j = 10; // java local variable cannot hide local varible (but C++ can) print(i); } } } Class X { int x; // instance variables int y; public X(int x, int y) // local variables hide instance variables { this.x = x; // the this keyword "unhides" the instance variables this.y = y; } }