What is the output of the following code?
```
public class Test {
public static void main(String[] args) {
String s1 = new String("Welcome to Java");
String s2 = s1;
s1 += "and Welcome to HTML";
if (s1 == s2)
System.out.println("s1 and s2 reference to the same String object");
else
System.out.println("s1 and s2 reference to different String objects");
}
}
```
a. s1 and s2 reference to the same String object
b. s1 and s2 reference to different String objects
b. s1 and s2 reference to different String objects
You might also like to view...
In a subform, you can use the ____ key to move from one field to the next.
A. Shift B. Enter C. Page Down D. Tab
What is a data source, and how is it used?
What will be an ideal response?
?
Referring to the figure above, a table row consists of a ____ series of cells.
A. vertical B. horizontal C. Both A and B. D. Neither A nor B.
Critical Thinking Questions Case 9-1 ? You have been having issues with your printer, so you decide to learn more about how the printer works. You learn that by spooling documents to a(n) ______, the computer or mobile device can continue interpreting and executing instructions while the printer prints.
A. external storage device B. buffer C. memory stick D. printer server