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

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!