Skip to main content
🔮 Output PredictionJV Java Hard⚡+35 XP

Autoboxing Trap

What does this print?

Java
Integer a = 1000;
Integer b = 1000;
System.out.println(a == b);
System.out.println(a.equals(b));

🔮 What is the output?