×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Which method in java is used to generate random numbers in Java?

45. Which method in java is used to generate random numbers in Java?

  1. random.nextInt()
  2. random()
  3. rand()
  4. All of these

Answer: A) random.nextInt()

Explanation:

The Java method random.nextInt() is used to generate random numbers.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.