1Z0-811 Java Basics and Syntax • Set 2
1Z0-811 Java Basics and Syntax Practice Test 2 — 15 questions with explanations. Free, no signup.
What is the output of this program?
Refer to the exhibit.
public class Test {
public static void main(String[] args) {
int a = 10;
int b = 20;
System.out.println(a + b);
System.out.println("Sum: " + a + b);
}
}