June 2018
Beginner
722 pages
18h 47m
English
Although we discuss them not the first, these are the most often used operators, especially the = simple assignment operator, which just assigns a value to a variable (also phrased as assigns a variable a value). We have seen examples of simple assignment usage many times already.
The only possible caveat in using simple assignment is when the type of the variable on the left is not the same as the value or variable type on the right. The difference in types can lead to the narrowing or widening of the value in the case of primitive types, or to boxing or unboxing when one type is a primitive type and another type is a reference type. We will discuss such assignments in the ...
Read now
Unlock full access