Thursday, November 14, 2013

Java Array 101 for Programmers and Beginners

Array is one of the most important data structure in any programming language, at same time different programming languages implement and treat array differently. Any one who is done some programming knows value of array and importance of knowing about array, using them in there program. Together with LinkedList, array forms a set of basic data-structure. Though Java offers excellent Collection API and some of collection classes like ArrayList and HashMap , they are internally based on array. If you are coming from C or C++ background then you will find some difference about how array behaves there and how it does in Java, most notable difference between array in C and array in Java is bound checking. C compiler doesn't check if program is accessing valid array index, while in Java, JVM does that and throws ArrayIndexOutOfBoundException, if program tries to access invalid array index. In this Java article, we will take a look on array in Java, both primitive and object arrays. It's a collection of important things about Java array and there properties.
Read more �

No comments:

Post a Comment