Arrays

  • An uninitialised Object that is an array element will be set to null by default. If we write:

String s[][] = new String[2][2];
System.out.println(s[1][1]);
System.out.println(s[1][2]);

The second call to println because all arrays start from 0, so an array with an element of size 2 has elements 0 and 1 but no element 2.

Comments

Popular posts from this blog

jQgrid reload with new data

Rich Client based UI technologies- A Comparison of Thick Client UI tools

OSS and BSS Systems