What output do we get if we run the following code? ```java class X { private int a; private int y; public X() { this.a = 3; } public X(int y) { this("z"); this.y = y; System.out.print(this.a + " "); System.out.print(this.y + " "); } } public class Z { public static void main(String[] args) { X x = new X(7); } } ```




© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.