Type Specification

The following grammar describes a type specification used in the declaration of a parameter or variable and in a cast expression:

            Type
            PrimitiveType
            Name

            PrimitiveType:
        NumericType
            boolean

            NumericType:
        IntegralType
            FloatingPointType

            IntegralType:
        byte
            short
            int
            long
            char

            FloatingPointType:
        float
            double

Get Java Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.