Q. What is the output of the below Java program with arrays?
Code:
String[] ary = {"KITE", "AIR"};
String str = "PLANE";
ary[1] = str;
str = "FLY";
System.out.println(ary[1]);
β
Correct Answer: (B)
PLANE