Multiple Choice
Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose randomNumbers is a SecureRandom object.
A) randomNumbers.nextInt(7) ;
B) randomNumbers.nextInt(2) ;
C) randomNumbers.nextInt(1) ;
D) randomNumbers.nextInt(25) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q28: Which of the following promotions of primitive
Q29: Identifiers in Java have _ and _
Q30: A Java class can have which of
Q31: Any field declared with keyword _ is
Q32: The identifiers in an enumeration _.<br>A) must
Q33: Method log takes the logarithm of its
Q34: In a class containing methods with the
Q35: The jjava.text package contains classes for manipulating
Q37: To declare a method as static, place
Q38: If more method calls occur than can