Multiple choice

What is the output of the given program?

public class Example {
 public static void main(String[] args) {
  String s1 = "Welcome to Aliensbrain";
  String s2 = "Welcome to Aliensbrain";
  if (s1 == s2) // Line 1 
   System.out.println("Equal");
  else System.out.println("Not Equal");
 }
}

  1. Equal

  2. Not Equal

  3. Run time error

  4. Blank output screen

  5. Error at line 1

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct choice.