Which package contains the Random class?
A. java.util package
B. java.lang package
C. java.awt package
D. java.io package
Answer:A
Which package contains the Random class?
A. java.util package B. java.lang package C. java.awt package D. java.io package
Explanation: The Random class is available in the java.util package. An object of the Random class is used to generate a series of pseudorandom numbers. And the object of this class is a thread-safe and cryptographically insecure object. The Random class provides a variety of methods that are used to create random numbers of type integers, float, long, double, etc.