MCQOPTIONS
Saved Bookmarks
| 1. |
What would be the output of following code snippet?int ran = random.nextInt(10) + 2; |
| A. | Random number between 4 to 10, excluding 4 and 10 |
| B. | Random number between 2 to 11, including 2 and 11 |
| C. | Random number between 2 to 11, excluding 2 and 11 |
| D. | Random number between 2 to 10, including 2 and 10 |
| E. | None of these |
| Answer» C. Random number between 2 to 11, excluding 2 and 11 | |