Just starting with Java. Could not find the answer in google. Could someone please explain why result of this operation:
System.out.println(20 + -3 * 5 / 8));
is: 19?
I assume by default it will print out an integer result only, but why it is rounded up? As the result is 18.125, so I would expect 18 to be printed. Is it always rounding integers up?
Thanks!