May 2014
Intermediate to advanced
792 pages
20h 31m
English
Every expression written in the Java programming language either produces no result (§15.1) or has a type that can be deduced at compile time (§15.3). When an expression appears in most contexts, it must be compatible with a type expected in that context; this type is called the target type. For convenience, compatibility of an expression with its surrounding context is facilitated in two ways:
• First, for some expressions, termed poly expressions (§15.2), the deduced type can be influenced by the target type. The same expression can have different types in different contexts.
• Second, after the type of the expression has been deduced, an implicit conversion from the type of the expression to the target type ...
Read now
Unlock full access