Question: This program includes a number of int variables: a, b, c, d, e, i, j, and y. Which of these variables could be printed

This program includes a number of int variables: a, b, c, d, e, i, j, and y.
- Which of these variables could be printed by the first println statement?
- Which of them could be printed by the second println statement?
- Which of them could be printed by the third println statement?
- Which of them could be printed by the fourth println statement?
- Which of them could be printed by the fifth println statement?
- Which of them could be printed by the sixth println statement?
public class ScopePuzzle { } public static void myMethod(int e) { int i; for (i 0; i
Step by Step Solution
3.44 Rating (147 Votes )
There are 3 Steps involved in it
1 The first println statement is outside of any loops or conditional blocks so it will print v... View full answer
Get step-by-step solutions from verified subject matter experts
