class Red {
public int a; public static int b;
public static void main (
String[] in) {
Red r1 = new Red(), r2 = new Red(); r1.a++; r1.b++;
System.out.print(r1.a+", "+r1.b+", "+r2.a+", "+r2.b);
}}
What is the result of attempting to compile and run the program?
a. Prints: 0, 0, 0, 0
b. Prints: 0, 1, 1, 1
c. Prints: 1, 1, 1, 0
d. Prints: 1, 1, 0, 1
e. Prints: 1, 1, 0, 0
f. Prints: 1, 1, 1, 1
g. Compile-time error
h. Run-time error
i. None of the above
The OUTPUT is d: 1, 1, 0 , 1