Q. Predict the output of following Java program
Code:
class Test {
int i;
}
class Main {
public static void main(String args[]) {
Test t = new Test();
System.out.println(t.i);
}
}
β
Correct Answer: (B)
0