Question: PART 1 Problem #1: [25 pts: 5 pts for each] Answer the following questions 1. Which of the statement on the right is correct about
![PART 1 Problem #1: [25 pts: 5 pts for each] Answer](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3b5e8ecc03_84866f3b5e86272d.jpg)
PART 1 Problem #1: [25 pts: 5 pts for each] Answer the following questions 1. Which of the statement on the right is correct about the below code when the body of the method is executed? public class TEST public static void main(String[] args) { int n = 25; method(n); Answer a. n, 2, and x have the same value. b. Only n and x have the same value. c. Only n and 2 have the same value. d. None of the above public static void method int x) { x++; int z= x; z=z-4; } 2. To get the size of an array called "myArray" we use: a. myArray.length(); b. myArray.size; c. myArray.length; d. Size (myArray); e. None of the above 3. int[] x = new int[6]: To print all array elements we use: a. b. c. . System.out.println(x); for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
