What is the output of the following code? ```java class X { private int a; private int y; public X() { a = 15; } public X(int y) { this(); X.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(5); } } ```




© 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.