Froquiz
Home
Quizzes
Senior Challenge
Get Certified
Blog
About
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
What is the difference between Math.floor(), Math.ceil() and Math.truncate() in Java?
Auto Skip
Report Issue
floor() rounds down, ceil() rounds up; truncate() does not exist in Java
All three give the same result, no difference
floor() and ceil() only work for positive numbers
truncate() rounds to the nearest integer
Previous
Next