615просмотров
21 марта 2025 г.
questionScore: 677
Какие значения выведет на экран данная программа? public class Application { public static class Container { int y = 5; } public static void main(String[] args) { int x = 5; change(x); System.out.println("x=" + x); Container c = new Container(); change(c); System.out.println("y=" + c.y); } public static void change(int x) { x = 0; } public static void change(Container c) { c.y = 0; }
} #качаем_харды TeamLead говорит | Александр Романов