What is the output of the following Java program?
public class Main {
public static void main(String[] args) {
System.out.println(1 + 2 + "3" + 4 + 5);
}
}- A15
- B12345
- C339
- D3345
Correct answer: D
What is the output of the following Java program?
public class Main {
public static void main(String[] args) {
System.out.println(1 + 2 + "3" + 4 + 5);
}
}