1
Loading subject content…
Loading subject content…
Loading practice questions…
What is the output of the following program?
public class Main {
public static void main(String[] args) {
System.out.println(1 + 2 + "3" + 4 + 5);
}
}What is the output of the following program?
public class Main {
public static void main(String[] args) {
var list = new java.util.ArrayList<String>();
list.add("x");
System.out.println(list.size());
}
}