Why this program only output 6 on screen?
-------------------------------
class Process {
public static final int x=9;
int y=4;
Process() {
System.out.println(x);
}
Process(int x) {
System.out.println(x);
}
}
public class
Test extends Process
{
public static final int x=6;
int y=5;
Test t = new Test();
Test() {
System.out.println(y);
}
public static void main(
String[] args) {
System.out.println(x);
}
}