in Education by
What is the return type of Math.random() method? (a) Integer (b) Double (c) String (d) Boolean This question was posed to me in an online quiz. I'm obligated to ask this question of Random Number in chapter java.util – More Utility Classes of Java Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Correct option is (b) Double For explanation: Math.random() method returns floating point number or precisely a double.

Related questions

0 votes
    What is the range of numbers returned by Math.random() method? (a) -1.0 to 1.0 (b) -1 to 1 (c) ... util - More Utility Classes of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Math.random() guarantees uniqueness? (a) True (b) False This question was posed to me in quiz. Enquiry is ... Utility Classes of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Which of these return type of hasNext() method of an iterator? (a) Integer (b) Double (c) Boolean (d ... Collections Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which method is used to generate boolean random values in java? (a) nextBoolean() (b) randomBoolean() (c) ... Utility Classes of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    What does Collections.emptySet() return? (a) Immutable Set (b) Mutable Set (c) The type of Set ... Collections Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which class is used to generate random number? (a) java.lang.Object (b) java.util.randomNumber (c) java. ... Utility Classes of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Random is a final class? (a) True (b) False I got this question by my college professor while I was ... More Utility Classes of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    How many bits are used for generating random numbers? (a) 32 (b) 64 (c) 48 (d) 8 The question was ... - More Utility Classes of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    Do we have get(Object o) method in HashSet. (a) True (b) False The question was posed to me by my ... The Collections Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Set has contains(Object o) method. (a) True (b) False The question was posed to me by my school ... Collections Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these method is used to add an element to the start of a LinkedList object? (a) add() (b ... The Collections Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these method of HashSet class is used to add elements to its object? (a) add() (b) Add() ... The Collections Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of this method is used to change an element in a LinkedList Object? (a) change() (b) set() ... The Collections Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these method is used to remove all keys/values pair from the invoking map? (a) delete() (b) ... Collections Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these method Map class is used to obtain an element in the map having specified key? (a) ... Collections Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
...