// "if" is a statement because it doesn't return a value:
String s;
if (x > 10) {
s = "greater";
} else {
s = "less or equal";
}
obj.someMethod(s);
// Ternary operator is an expression; it returns a value:
obj.someMethod(x > 10 ? "greater" : "less or equal");