Home Tutorial Java Certification Arrays in java


Share on Google+Share on Google+
Arrays in java
Posted on: July 5, 2010 at 12:00 AM
In this SCJP Section,you will learn about Arrays in java.

Arrays in java

Arrays are the data structure of java , we use array where we need contiguous memory allocation. Array stores same type of data structure. Array type is checked at compile time. An array has a fixed length.

Declaration of Array

int[] array_name;     //declares an array of integers
String[] names;      
int[][] matrix;          //declare an array of integer

Initialization of Array

int[] a = new int[5];

It declares an array of length 5.

 For more details click here :

Java Array Tutorial


Related Tags for Arrays in java:

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: July 5, 2010

Recommend the tutorial

Advertisements Advertisements