ICSE Class 10 Computer Applications
Question 10 of 30
Solved 2023 Question Paper ICSE Class 10 Computer Applications — Question 10
Back to all questions20 22
Reason — The values of strings P and Q are converted into integers using the Integer.parseInt() method and stored in int variables a and b, respectively.
When the statement System.out.println(a + " " + b) is executed, first the operation a + " " is performed. Here, int variable a is converted to a string and a space is concatenated to it resulting in "20 ".
After this, the operation "20 " + b is performed resulting in 20 22 which is printed as the output.