Question: After the following java statements are executed in java, which of the choices will be true? int x = 2 1 , y = 3

After the following java statements are executed in java, which of the choices will be true?
int x =21, y =31;
y = x;
A. Both variables x and y will contain the same value 31 in the memory.
B. y will contain 21 and x will contain 31 in the memory.
C. y will contain 0 and x will contain 31 in the memory.
D. Both variables x and y will contain the same value 21 in the memory.
E. x will contain 0 and y will contain 21 in the memory.

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!