Will this code fragment throw an exception


The following code fragment.

int [] a = new int[50];
a[50] = 100;

Will this code fragment throw an exception? Explain.

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Will this code fragment throw an exception
Reference No:- TGS02366556

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)