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 = new String("Welcome to Java!");
if (s1.equals(s2))
System.out.println("s1 and s2 have the same contents");
else
System.out.println("s1 and s2 have different contents");
}
}```
a. s1 and s2 have the same contents
b. s1 and s2 have different contents
a
You might also like to view...
In Excel, the ABS function can only be used in a nested function
Indicate whether the statement is true or false
In an OpenOffice Base database, a(n) ________ is where related data is stored
Fill in the blank(s) with correct word
The ________ contains a list of the currently open Access Database objects that contain VBA procedures and modules
A) module B) Procedure window C) Project Explorer D) Code window
Any XHTML elements you place within a
Answer the following statement true (T) or false (F)