Question: Consider the following code: public class AyeAye { int i = 4 0 ; int j ; public AyeAye 0 { setValue ( i +

Consider the following code:
public class AyeAye {
int i=40;
int j;
public AyeAye 0{
setValue(i++);
}
void setValue(int inputValue){
int i=20;
j=i+1;
System.out.println("j="+j;
}
}
What is the value of the j variable at the time it is displayed inside the setValue 0 method?
 Consider the following code: public class AyeAye { int i=40; int

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!