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:

Verified
Correct Answer:
Verified
Q6: An API is<br>A) an Abstract Programming Interface<br>B)
Q16: In Java a variable may contain<br>A) a
Q17: When comparing any primitive type of variable,
Q18: These two ways of setting up a
Q19: A JPanel can be added to a
Q20: What happens if you attempt to use
Q22: What is the advantage of putting an
Q23: Write a method to extract the initial
Q26: JOptionPane is a class that provides GUI<br>A)
Q30: All the methods in the Math class