What is the output of the following code?
```
ArrayList
String s1 = new String("Java");
String s2 = new String("Java");
list.add(s1);
list.add(s2);
System.out.println((list.get(0) == list.get(1)) + " " + (list.get(0)).equals(list.get(1)));
```
a. true false
b. false true
c. true true
d. false false
b. false true
list.get(0) and list.get(1) point to two different objects with the same string contents.
You might also like to view...
The Internet address 128.0.0.1 is also known as __________.
a. localhost. b. remotehost. c. localserver. d. remoteserver.
Discuss how mobile database support the mobile worker.
What will be an ideal response?
The Office Clipboard can be used without activating the Clipboard pane.?
Answer the following statement true (T) or false (F)
The actual _______________ of a wireless network is affected by environmental factors, such as interference from other wireless devices and solid objects.
Fill in the blank(s) with the appropriate word(s).