> array types java ~ Online tutorial

array types java

Array Types
1)An array type is written as the name of an element type followed by some number
of empty pairs of square brackets [].
2)The number of bracket pairs indicates the depth of array nesting. An array’s length is not part of its type.
3)The element type of an array may be any type, whether primitive or reference.
In particular:

array with an interface type as the component type are allowed. The elements
of such an array may have as their value a null reference or instances of
any type that implements the interface.
• Arrays with an abstract class type as the component type are allowed. The
elements of such an array may have as their value a null reference or instances
of any subclass of the abstract class that is not itself abstract.
Array types are used in declarations and in cast expressions

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: