import java.util.Arrays;public class Concat {public static void main(String[] args) {int[] array1 = {4, 5, 6};int[] array2 = {1, 2, 3};int aLen = array1.length;int bLen = array2.length;int[] result = new int[aLen + bLen];System.arraycopy(array1, 0, result, 0, aLen);System.arraycopy(array2, 0, result, aLen, bLen);System.out.println(Arrays.toString(result));}}
What will be the output of the following code?int main(){structure sook{int items;char name[30];}a;strcpy(a.name, "STAR");a.items=10;printf("%s", a.name);return 0;}