Home / Programming MCQs / JAVA MCQs / Question
R
Q. Which method in java is used to generate random numbers in Java?
Explanation:
The Java method random.nextInt() is used to generate random numbers.
You must be Logged in to update hint/solution
Which of the following is the correct syntax for a while loop in Java?
Which of the following is a method having same name as that of its class?
What is the range of short data type in Java?
How many techniques are used in Session Tracking?
Which is the error thrown when two methods with varargs look the same to the compiler?
What is the output of the code snippet with the ternary operator?
What is the output of the Java code snippet?
In the Java statement import java.lang.Math; Math is
Package statement helps to create many classes to have ______ name.
Which of the following is a subclass of the Exception class?
Discusssion
Login to discuss.