View RSS Feed

Java Array

Array Types

Rate this Entry
by , 03-04-2012 at 10:10 AM (373 Views)
To write an array type use element type name with few empty square bracket pairs[]. Depth of array nesting is indicated by the no. of bracket pairs. Length of array is not its type part.

An array’s element type might be any type whether reference or primitive. Particularly,

  • Arrays along with an interface type, as the component type are allowed. Such array’s elements might use null reference as their value or any type instances which implements interface.
  • Arrays with an abstract class type, as the component type are allowed. Such array’s elements might use null reference as their value or any subclass’s instance, of some abstract class which is not abstract itself.



Array types are used in cast expressions and declarations.

Submit "Array Types" to Facebook Submit "Array Types" to Digg Submit "Array Types" to del.icio.us Submit "Array Types" to StumbleUpon Submit "Array Types" to Google

Tags: array types Add / Edit Tags
Categories
Arrays

Comments