Question: Given the following application, which diagram best represents the state of the mySkier, mySpeed, and myName variables in the main() method after the call to
Given the following application, which diagram best represents the state of the mySkier, mySpeed, and myName variables in the main() method after the call to the slalom() method?

![private static void slalom (Ski racer, int[] speed, String name) { }](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1707/2/1/4/10265c20516b9d041707214102364.jpg)
package slopes; public class Ski { } private int age = 18; private static void slalom (Ski racer, int[] speed, String name) { } racer.age = 18; name = "Wendy"; speed= new int [1]; speed [0] = 11; racer = null; public static void main(String... mountain) { final var mySkier = new Ski (); } mySkier.age = 16; final int[] mySpeed = new int [1]; final String myName = "Rosie"; slalom (mySkier, my Speed, myName);
Step by Step Solution
3.42 Rating (155 Votes )
There are 3 Steps involved in it
In the Java application youve presented three variables are passed to the slalom method mySkier mySpeed and myName These variables are declared and in... View full answer
Get step-by-step solutions from verified subject matter experts
