Page 1 of 1

Consider this code fragment: int[] first = {12,-3,6,9}; + ) int[] second ={3,-2,9,8}; second = first; first[1] = 24; Wha

Posted: Sat May 14, 2022 4:47 pm
by answerhappygod
Consider This Code Fragment Int First 12 3 6 9 Int Second 3 2 9 8 Second First First 1 24 Wha 1
Consider This Code Fragment Int First 12 3 6 9 Int Second 3 2 9 8 Second First First 1 24 Wha 1 (40.08 KiB) Viewed 48 times
Consider this code fragment: int[] first = {12,-3,6,9}; + ) int[] second ={3,-2,9,8}; second = first; first[1] = 24; What is the value of second [1]; O-3 O-2 O 24 09 QUESTION 4 The output of executing the following code is: String namel = { "Doaa", "Ahmed", "Shamsa", "Ali" }; System.out.println(name[3]+name[4].toLowerCase()); O ShamsaAli O shamsaali Shamsa Ali ArrayIndexOutOfBoundsException