I am trying to remember what happens when various mathematical operations are applied to Java Primitives e.g. int + int = int
But would would happen in this case:
float/short=?
Is there any easy way to remember what happens when any operation is applied to any of the Java primitives? Or is it just something that I will need to commit to memory?
--EDIT--
The float/short
was an example of the kind of thing im looking for. Im wondering if there is a pattern on the answers when any operation is applied to any amount of primitives e.g.
double*double=?
short/byte+long=?
etc.....