What is the output of the below Java program with arrays?
String[] ary = {"KITE", "AIR");
String str = "PLANE";
ary[1] = str;
str = "FLY";
System.out.println(ary[1]);
W
O AIR
O PLANE
O
FLY
O Compiler error
Answers
Answered by
0
Answer:
Compile error as arr[1] stores one character
Similar questions