How many String objects are instantiated by the following code segment (not including the literals)?

```
String s1, output;
s1 = "hello";

output = "\nThe string reversed is: " ;

for (int i = s1.length() - 1; i >= 0; i--)
output += s1.charAt(i) + " " ;
```

a. 1.
b. 4.
c. 5.
d. 7.

d. 7.

Computer Science & Information Technology

You might also like to view...

In a ________ chart, narrow rectangles represent data by their length and are oriented horizontally instead of vertically

A) column B) bar C) line D) trendline

Computer Science & Information Technology

Spyware and viruses that are installed without your knowledge can record keystrokes for stealing sensitive information

Indicate whether the statement is true or false

Computer Science & Information Technology