Question: What does the following code output in Java Programming? int x = 10; int y = 5; if (y > y) {
What does the following code output in Java Programming?
int x = 10;
int y = 5;
if (y > y) {
y += y;
} else if (y > x) {
y += x;
} else {
x =- y;
}
System.out.printf("%d%d", x, y);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
