If x is defined as an array reference variable xlength does

If x is defined as an array reference variable, x.length does not exist if x is null. True False

Solution

Anser is True.

int[] Array = new int[3];// here length of the array is 3.
int[] Array = null;// if you are trying to find you won\'t get length of the array
int len=Array.length;// will get lenght of the array

 If x is defined as an array reference variable, x.length does not exist if x is null. True FalseSolutionAnser is True. int[] Array = new int[3];// here length

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site