Kizspy | Question: 17
(Choose 1 answer)
What is the output of the following code snippet?
public class Test {
int x = 5;
int y = 2;
public static void main(String[] args) {
Test obj;
obj.x = 10;
obj.y = 20;
System.out.println(obj.x + obj.y);
}
}
A. Compile error
B. 7
C. 30
D. 90
FUOVER