Question: What will be the output when running the following program? Select the two correct answers. (a) The first number printed will be 9. (b) The
What will be the output when running the following program?
![public class StillMyClass { public static void main (String [] args) {](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1706/9/4/0/59265bdd8b084d6a1706940590383.jpg)
Select the two correct answers.
(a) The first number printed will be 9.
(b) The first number printed will be 10.
(c) The first number printed will be 11.
(d) The second number printed will be 9.
(e) The second number printed will be 10.
(f) The second number printed will be 11.
public class StillMyClass { public static void main (String [] args) { int i = 0; } } int j; for (j = 0; j < 10; ++j) { i++; } System.out.println (i + +j);
Step by Step Solution
3.45 Rating (168 Votes )
There are 3 Steps involved in it
b and e Both the first and second numbers printed will be 10 Both t... View full answer
Get step-by-step solutions from verified subject matter experts
