- Home
- Output Questions for Class 10 ICSE Computer Applications
Predict the output of the following Java program snippet
Output Questions for Class 10 ICSE Computer Applications
Predict the output of the following Java program snippet:
String n1 = "46", n2 = "64";
int total = Integer.parseInt(n1) + Integer.parseInt(n2);
System.out.println("The sum of " + "46 " + "and" + " 64" + " is " + total);