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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 47 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply