Question 8 In the following method, where are ch and d stored? public static void methodB(Character ch) { double d - 0.5
Posted: Sat May 14, 2022 8:06 pm
Question 8 In the following method, where are ch and d stored? public static void methodB(Character ch) { double d - 0.5; } Och on the heap and d on the stack Och on the stack and d on the heap Och and d on the heap Och and d on the stack
D Question 19 What should RETURN_TYPE be: public static RETURN_TYPE methodA int count, String name, double distance, char erede, done = Idone; String uppercaseName - name.toUpperCase(); double length - distance; int counter = count + 1; return distance; > O boolean String int O char O double
D Question 22 Which of the following are true for the following statement? String [] list = null; initializes the reference variable to null declares a variable to hold a reference to array of String creates/instantiates an array initializes all the elements in the array to null
D Question 19 What should RETURN_TYPE be: public static RETURN_TYPE methodA int count, String name, double distance, char erede, done = Idone; String uppercaseName - name.toUpperCase(); double length - distance; int counter = count + 1; return distance; > O boolean String int O char O double
D Question 22 Which of the following are true for the following statement? String [] list = null; initializes the reference variable to null declares a variable to hold a reference to array of String creates/instantiates an array initializes all the elements in the array to null