Skip to content

Commit 89752b2

Browse files
committed
Update java-multiple-choice-questions-answers.md
1 parent ac74e7f commit 89752b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java-multiple-choice-questions-answers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ D. 6
435435
```
436436
A. 1
437437
```
438-
**Explanation**: Remember that in ternary expressions, only one of the two right-most expressions are evaluated. Since `meal>6` is false, `––tip` is evaluated and `++tip` is skipped. The result is that `tip` is changed from 2 to 1.
438+
**Explanation**: In ternary expressions, only one of the two right-most expressions are evaluated. Since `meal>6` is false, `––tip` is evaluated and `++tip` is skipped. The result is that `tip` is changed from 2 to 1.
439439

440440
#### Q. What is the output of the following application?
441441
```java

0 commit comments

Comments
 (0)