yes!! ArrayIndexoutOfBoundsException is going to occur since the a[0] element will try to access the zeroth element of 'a' array whose length is 0 itself.the last element of such array is 0-1 =-1 itself.
------------<BR>Suraj Berwal<BR>Sun Certified Programmer for Java 2 Platform
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.