Page 1 of 1

Java Question-Provide Explanation and Answer

Posted: Sun Jul 10, 2022 11:30 am
by answerhappygod
Java Question-Provide Explanation and Answer
Java Question Provide Explanation And Answer 1
Java Question Provide Explanation And Answer 1 (58.45 KiB) Viewed 42 times
What will be the value of x[1] after the following code has been executed? final int SUB= 12; int[] x = new int[SUB]: int y = 100; for(int i = 0; i < SUB; i++) { x = y; y + = 10; } 170 110; 190 220