What will the following code snippet print when main
is executed?
public class Test {
int x = 5;
void printX() {
System.out.println(this.x);
}
public static void main(String[] args) {
new Test().printX();
}
}