πŸ“Š JAVA
Q. What is the output of the following?
Code:
public static void main(String... args) {
   String chair, table = "metal";
   chair = chair + table;
   System.out.println(chair);
} 
  • (A) metal
  • (B) metalmetal
  • (C) nullmetal
  • (D) The code does not compile
πŸ’¬ Discuss
βœ… Correct Answer: (D) The code does not compile

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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