1. Look at the following method header: public static void myMethod(int a, int b, int c) Now look at the following call to myMethod: myMethod(3, 2, 1); When this call executes, what value will be...


1. Look at the following method header:


public static void myMethod(int a, int b, int c)



Now look at the following call to myMethod:


myMethod(3, 2, 1);



When this call executes, what value will be stored in a? What value will be stored in b?


What value will be stored in c?


2. What will the following program display?


public class ChangeParam


{



public static void main(String[] args)



{



int x = 1;



double y = 3.4;



System.out.println(x + " " + y);



changeUs(x, y);



System.out.println(x + " " + y);



}



public static void changeUs(int a, double b)



{



a = 0;



b = 0.0;



System.out.println(a + " " + b);



}


}



Nov 28, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here