Which of the following will be true after these lines are executed?
Consider the following snippet of code:
```
Random generator = new Random();
int randNum = generator.nextInt(20) + 1;
```
a) randNum will hold a number between 1 and 20 inclusive.
b) randNum will hold a number between 0 and 20 inclusive.
c) randNum will hold a number between 1 and 21 inclusive.
d) these lines will not be executed because a compiler error will result.
e) none of the above
a) randNum will hold a number between 1 and 20 inclusive.
You might also like to view...
People use all of the following to view Web pages EXCEPT ____.
A. projectors B. display boxes C. e-book readers D. netbooks
The biggest reason for rasterizing type is to avoid ____________________ issues.
Fill in the blank(s) with the appropriate word(s).
The ________ component of Outlook lets you set up appointments, reminders, and organize your schedule
Fill in the blank(s) with correct word
In Word, the Save as Template button is located on the FORMAT tab
Indicate whether the statement is true or false