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...

When you update data in a worksheet, you must press F9 to update the data in the associated chart

Indicate whether the statement is true or false

Computer Science & Information Technology

The application layer of the TCP/IP model only corresponds with the application and presentation layers of the OSI model

Indicate whether the statement is true or false.

Computer Science & Information Technology