Question: What is output by the code below? public static void bMethod(int b){ b=9; out.print(b+ ); b=7; } //test code int bParam = 4; bMethod(bParam); out.println(bParam);
What is output by the code below?
public static void bMethod(int b){
b=9;
out.print(b+" ");
b=7;
}
//test code
int bParam = 4;
bMethod(bParam);
out.println(bParam);
a. 9 4
b. 9 9
c. 7 4
d. 9 7
e. 4 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
