6. What is the output of the following Java code? public static void main(String[] args) { int myArray = (1, 2, 3, 4, 5)
Posted: Fri Jul 01, 2022 5:46 am
6. What is the output of the following Java code? public static void main(String[] args) { int myArray = (1, 2, 3, 4, 5); doit myArray); System.out.print( myArray[j] public static void doIt( int[] 2 ) int temp = z[ 2.length-1 ] ; z [0] temp; A 52 3 4 5 B. 12345 C. 51234 D. 123 44 F