Both /, div are used to perform Division. Only difference is / performs floating-point division only, for integers division we can use div.
*Main> 10 / 9
1.1111111111111112
*Main>
*Main> div 10 9
1
*Main> 10 `div` 9
1
You can use ‘/’ in prefix notation also by using parenthesis.
*Main> (/) 10 9
1.1111111111111112
This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here