Computer Applications
The Math method which returns int value is:
- round()
- cbrt()
- ceil()
- random()
Java Math Lib Methods
9 Likes
Answer
round()
Reason — The round() method returns an int. Other methods like cbrt() and ceil() return double, while random() returns a double value between 0.0 and 1.0.
Answered By
4 Likes
Related Questions
Which construct can be used to get only one of the required ice creams?

- switch construct
- while construct
- do.. while construct
- for construct
Which statement is correct for the method prototype given below:
int check(char ch, String s)- check() does not return any value
- check() has return type int
- check method has two actual parameters
- check() is a constructor
What is the output of the following statement:
“MONOPOLY”.lastIndexOf(‘O’);- 1
- 3
- 2
- 5
Typecasting is often necessary when dealing with financial data. Identify the correct syntax to typecast a double to an int using the variables:
int amount; double valueINR- int amount = valueINR;
- int amount = Integer.parseInt (valueINR);
- int amount = (int) valueINR;
- int amount = int (valueINR);