DOCUMENT RESOURCES FOR EVERYONE
Documents tagged
Documents Questions

1. int [] arr = { 1 ,2 ,3 ,4 ,5}; int [] arr2 = new int[4]; arr2 = arr; System.out.println(arr2[4]); a. Compile error b. Runtime Exception. ArrayOutOfBounds c. Prints 4 d.…