Question

What is the output of the following Java code?     String s1 = "Hello";     String s2 = "Hello";     System.out.println(s1 == s2);

A true
B false
C Compilation error
D Runtime exception
E Depends on JVM
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)