Computer Science, asked by vamsi9177735278, 1 month ago

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 nitishshaw720
0

Answer:

Compile error as arr[1] stores one character

Similar questions