Multiple Choice
Assume you write a program that uses 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 missing the class.
B) The program won't compile and 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 run-time error when it attempts to access any member of the Random class.
E) none of these
Correct Answer:

Verified
Correct Answer:
Verified
Q23: Rewrite the following five assignment statements into
Q24: The advantage(s) of the Random class's pseudorandom
Q25: Problem Ch 03-1<br>Assume an interactive Java program
Q26: If two variables contain aliases of the
Q27: In Java a variable may contain<br>A) a
Q29: The following statement will display the value
Q30: All the methods in the Math class
Q31: Which of the following packages includes classes
Q32: What does the following code fragment do?
Q33: You may apply the prefix and postfix