Vishal Hegde wrote:class demov
{
public static void main(String args[])
{
int a[][]=new int[100][];
}
}
then how is it runnning successfuly
Because you have delcared the dimensions on the first bracket. You can do the first dimension, both dimensions, or neither. If it were a 3D array such as inta[][][]=new int[][][] you could put something in the first bracket, first and second bracket, or all three brackets, or none.
SCJA
When I die, I want people to look at me and say "Yeah, he might have been crazy, but that was one zarkin frood that knew where his towel was."