What will the following functions return when executed?
Views 18
Answer:
(i) Math.max(-17, -19)
- Output:
-17
(Since -17 is greater than -19)
(ii) Math.ceil(7.8)
- Output:
8.0
(Math.ceil returns the smallest integer greater than or equal to the argument)
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.