Question: 1. (1 point) Consider this short sequence of code: int x, y; x = 7; y = x; y = 9; System.out.println(x); This code prints

1. (1 point) Consider this short sequence of code: int x, y; x = 7; y = x; y = 9; System.out.println(x); This code prints out a '7' to the console window. Why? Explain, and explain why changing the variable 'y' does not affect the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
