πŸ“Š JAVA
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]);
  • (A) AIR
  • (B) PLANE
  • (C) FLY
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (B) PLANE

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
232
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate