Millionaire Mode

Java (GATE)

Question 1 of 13

What is the output of the given program?

public class HelloWorld {
 public static void main(String[] args) {
  String s1 = "Welcome to Aliensbrain";
  String s2 = "Welcome to Aliensbrain";
  switch (s1 == s2) {
   default: System.out.println("Bye");
   case 1:
     System.out.println("Hello Italy");
   case 0:
     System.out.println("Hello Paris");
  }
 }
}
  1. Hello ItalyHello Paris
  2. Hello Paris
  3. Bye Hello ItalyHello Paris
  4. Compiler Error
  5. Run time exception

Prize Money

15₹7 Crores
14₹1 Crore
13₹50,00,000
12₹25,00,000
11₹12,50,000
10₹6,40,000
9₹3,20,000
8₹1,60,000
7₹80,000
6₹40,000
5₹20,000
4₹10,000
3₹5,000
2₹2,000
1₹1,000