Skip to main content
๐Ÿ”ฎ Output PredictionJV Java Easy+10 XP

String Comparison

What does this print?

Java
String a = "hello";
String b = "hello";
System.out.println(a == b);

๐Ÿ”ฎ What is the output?

Priygop - Leading Professional Development Platform | Expert Courses & Interview Prep