consider that we want to define an array of integers.
we have two options:
1: Integer[] a=new Integer[5];
2:int[] a=new int[5]
so we can always use the first one because it is a class and it has useful methods.
so why should we use the second one?