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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!