how does devision works in java

Solutions on MaxInterview for how does devision works in java by the best coders in the world

showing results for - "how does devision works in java"
Henry
04 May 2020
1Java does integer division, which basically is the same as regular real division, but you throw away the remainder (or fraction). Thus, 7 / 3 is 2 with a remainder of 1. Throw away the remainder, and the result is 2.
2
3Integer division can come in very handy.