What output is produced by the following statement? Explain.
```
System.out.println ("50 plus 25 is " + 50 + 25);
```
The output produced is:
```
50 plus 25 is 5025
```
First the string “50 plus 25 is ” is concatenated with the integer 50; since one of the operands is a string, the result is a string. Then the string “50 plus 25 is 50” is concatenated with the integer 25, producing the final result.
Computer Science & Information Technology
You might also like to view...
When new rows or columns are inserted, Calc automatically adjusts the row numbers or column letters
Indicate whether the statement is true or false
Computer Science & Information Technology
In a formal report or other long document, page numbers must be set for each ________ in a document
Fill in the blank(s) with correct word
Computer Science & Information Technology