Question: class PeClass { int i = 0; int j = 10; public void too() { j = 20; { int j = 11; i =
class PeClass { int i = 0; int j = 10; public void too() { j = 20; { int j = 11; i = 10; j = 10; } System.out.println("i, j = " + i + ", " + j); } }
Suppose we construct an object of this class and send it the message too(), what would the output from method too() be?
Select one or more:
i, j = 0, 10
i, j = 0, 11
i, j = 0, 20
i, j = 10, 20
i, j = 10, 10
i, j = 10, 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
