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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!