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);
}
β
Correct Answer: (D)
The code does not compile