MCQOPTIONS
Saved Bookmarks
| 1. |
Consider the following expressions in Java int a, b, c, a = 40;b = a++ ;c = ++a ;Now the values of a, b, c are |
| A. | 42, 40, 42 respectively |
| B. | 42, 42, 42 respectively |
| C. | 40, 42, 42 respectively |
| D. | 40, 40, 42 respectively |
| Answer» B. 42, 42, 42 respectively | |