Write a Java program to print the sum of two numbers

Source Code:

public class P2 {
public static void main(String[] args) {
int a = 5;
int b = 10;
System.out.println(a + b);
}
}

Output: