View RSS Feed

Recent Blogs Posts

  1. Using Arrays in Java

    by , 11-08-2011 at 07:24 PM (My Java Tips)
    Arrays are simply a sequence of memory locations for storing data. The index of an array starts from zero. We have to mention the size of an array while declaring it. Once declared, we cannot change the size at any stage.

    While working with arrays, you will encounter ArrayIndexOutOfBoundsException. This exception is raised if you try to access an element from the array with negative index, or with index greater than the length of index.

    Sorting an array is easy in Java ...
    Tags: array, size fixed Add / Edit Tags
    Java SE