Friday, 1 November 2013

Download Free Java Software

Download Free Java Software

Arrays Introduction & Properties

Array is a data structure capable to hold data of similar data types. Every language comes with its own rules for arrays. For example, JavaScript and VBScript comes its own set of rules, quiet different from Java. Arrays of Java are similar to C/C++.

Properties of Arrays

Following are the properties of arrays as accepted by the Java compiler.

  • Arrays stores similar data types. That is, array can hold data of same data type values. This is one of the limitations of arrays compared to other data structures.
  • Each value stored, in an array, is known as an element and all elements are indexed. The first element added, by default, gets 0 index. That is, the 5th element added gets an index number of 4.
  • Elements can be retrieved by their index number.
  • Array elements are stored in contiguous (continuous) memory locations.
  • Once array is created, its size is fixed. That is, at runtime if required, more elements cannot be added. This is another limitation of arrays compared to other data structures.
  • One array name can represent multiple values. Array is the easiest way to store a large quantity of data of same data types. For example, to store the salary of 100 employees, it is required to declare 100 variables. But with arrays, with one array name all the 100 employees salaries can be stored.
  • Arrays can be multidimensional.
  • At the time of creation itself, array size should be declared (array initialization does not require size).
  • In Java, arrays are predefined objects. With methods, the array elements can be manipulated.
  • As Java does not support garbage values, unassigned elements are given default values; the same values given to unassigned instance variables.
  • Java supports one-dimensional, two-dimensional and Jagged Arrays – Varying Column Size.

- See more at:

Java Drawbacks

Even though Java is projected as the most demanded language of the times, but has its own disadvantages. Of course, they are very minor in nature and need not be considered as drawbacks compared to the advantages it brings forward.

a) Slow performance: The first and foremost drawback everyone accepts is Java's slow speed of execution. Of course it is designed so to get the affect of platform-independent feature. Designers do trying to increase the performance in other aspects like the introduction of JIT (Just-In-Time) compiler.

b) No support for low-level programming: With Java, low-level programming cannot be done as it is intended to be portable across platforms.

c) Poor features in GUI: Java supports GUI controls but with less features. For example, an image cannot be placed on a button. The is overcome with the introduction of javax.swing package. Swing controls come with abundant features that are comparable with any GUI available.

d) No control over garbage collection: Garbage collection is one of the built-in features of Java and is entirely managed by JVM. programmer is not given any handles to control the garbage collection to make coding simple. For this reason, Java does not come with delete(), free(), malloc() and sizeof() etc. functions.

What Java Can't Do?

Even though Java is termed as a production language where productivity is very high, but still it cannot do certain things. The productivity is possible due to the abundant classes available in Java API that can cater to the very specific needs of the programmer. Java includes a few thousands of classes with JDK 1.5 that takes care of many minute aspects of coding. Even though it is hyped so heavily, but it cannot be used to develop low-level programming. Using Java, a new OS or new protocols or DVD burning software etc. cannot be programmed.

- See more at: