Skip to main content
🔮 Output PredictionJV Java Easy⚡+10 XP

Ternary Operator

What does this print?

Java
int x = 7;
String result = (x > 5) ? "big" : "small";
System.out.println(result);

🔮 What is the output?