How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask ATLPROG Your Own Question
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7260
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now

GA- cv Consider the following code illustrating the class MyClass,

Customer Question

Consider the following code illustrating the class MyClass, its instance variables i and j, and its single method foo:
class MyClass
{
int i = 0;
int j = 10;
public void foo()
{
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 invoke its method foo, what would the output from method foo be?
Select one or more:
i, j = 0, 10
i, j = 10, 11
i, j = 0, 11
i, j = 10, 20
i, j = 0, 20
i, j = 10, 10
Submitted: 2 years ago.
Category: Programming
Expert:  LogicPro replied 2 years ago.
Hi,
Welcome here.
My name is ***** ***** I will help you.
What is the deadline?
Expert:  LogicPro replied 2 years ago.
It seems you didn't get my previous reply.
What is the deadline?
Expert:  Camille-cssm replied 2 years ago.
We received your customer service inquiry, however, we are unable to respond to you because we do not have your email address. Please contact customer support at***@******.*** and provide us with your email address and a link to this question page so that we can help you.
http://www.justanswer.co.uk/computer-programming/8t4ln-consider-following-code-illustrating-class-myclass.html
Thank you, ***** ***** Customer Support Team.
Expert:  LogicPro replied 2 years ago.
Let me know once you get my reply

Related Programming Questions