Methods
- What is the output of this program?
public class Result
{
public static void main(String args[])
{
double num = 4.13;
int p = (int) Math.toDegrees(num);
System.out.print(p);
}
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
4.13 in degree 236.0.
- Which of these method returns a smallest whole number greater than or equal to variable p?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
ciel(double X) returns the smallest whole number greater than or equal to variable p.
- toRadian() and toDegree() methods were added by which version of Java?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
toRadian() and toDegree() methods were added by Java 2.0 before that there was no method which could directly convert degree into radians and vice versa.
- Which of these method converts radians to degrees?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
toDegree()
- Which of these method returns the remainder of dividend / divisor?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
IEEEremainder() returns the remainder of dividend / divisor.