Solved

Say You Write a Program That Makes Use of the Random

Question 21

Multiple Choice

Say you write a program that makes use of the Random class, but you fail to include an import statement for java.util.Random (or java.util.*) . What will happen when you attempt to compile and run your program.


A) The program won't run, but it will compile with a warning about the missing class.
B) The program won't compile-you'll receive a syntax error about the missing class.
C) The program will compile, but you'll receive a warning about the missing class.
D) The program will encounter a runtime error when it attempts to access any member of the Random class
E) none of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions