# [JAVA] TDD study # 5 (July 18th, 2020)

# New knowledge

### Conditional operator (ternary operator)

```
Conditional expression?Equation 1:Equation 2
```

Process expression 1 when the conditional expression is `true`

, and process expression 2 when it is` false`

.
By the way, the logical operator ʻa && b` is true when both a and b are true.