Example & Tutorial understanding programming in easy ways.

What happened If we compile and run following code?

class NonSerial {

public int rajesh=0;

int i[][][][][][][][][][][][][][][][][][][][][][][][]=new int[0][][][][][][][][][][][][][][][][][][][][][][][];

}

 

It will run and compile. Java does not support multi dimension arrays but array with in array can be defined .It is case of  multi dimension array .

Read More →