What is the output of the code - void dojobint x int


what is the output of the code?

int x=4;
int y=6;
doJob(x,y);
println(x+" "+y);

void doJob(int x, int a);
{
int y=x;
x=a;
}

Solution Preview :

Prepared by a verified Expert
JAVA Programming: What is the output of the code - void dojobint x int
Reference No:- TGS02398104

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)