What is the output of the given program?
public class Example {
public static void main(String[] args) {
String s1 = new String("Welcome to Aliensbrain");
String s2 = new String("Welcome to Aliensbrain");
if (s1 == s2) // Line 1
System.out.println("Equal");
else
System.out.println("Not Equal");
}
}
Reveal answer
Fill a bubble to check yourself