February 2014
Beginner
1248 pages
62h 25m
English
• Argument promotion (p. 210) converts an argument’s value to the type that the method expects to receive in its corresponding parameter.
• Promotion rules (p. 210) apply to expressions containing values of two or more primitive types and to primitive-type values passed as arguments to methods. Each value is promoted to the “highest” type in the expression. In cases where information may be lost due to conversion, the Java compiler requires you to use a cast operator to explicitly force the conversion to occur.
Read now
Unlock full access