Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions