KnowledgeBoat Logo

Output Questions for Class 10 ICSE Computer Applications

Predict the output of the following:

System.out.println(Math.ceil(65.5));

Java

Java Math Lib Methods

ICSE

21 Likes

Answer

66.0

Working

Math.ceil method returns the smallest double value that is greater than or equal to the argument and is equal to a mathematical integer. Here 66.0 is the smallest mathematical integer greater than 65.5 so it is the output.

Answered By

10 Likes