Java question on operations?
I have this question for school, however, i have no idea how to answer it?
The binary arithmetic operators (+,-,*,/,%) perform an operation between two operands. For each of these operators, what are the types of the operands they are defined to work with? How many different types of operands is each defined for?
(You have eight primitive data types. Do you think that subtraction, for example, is defined to work with any combination of all eight primitive data types, for a total of 64 different definitions of subtraction? Something to consider as you're thinking about this is what is the point of coercion.)