Array ---------------------------------------------------------------------------------------- ->Collection of similar type of elements which is stored into contigeous memory location called as array. -> store only fixed number of elements in array- 5 -> Array is index based-> first element(34)- store- 0th index second element(21)- store-1st index Advantages- Random access- we can get the specific location data based on index position Disadvantages- size limit- store fixed size of elements Array- size 5- only 5 elements not 6 2 types of array ->Single Dimensional Array (focus on this only) ->Multi Dimensional Array(not used in company) syntax- dataType[] arrayname; or dataType []arrayname; or dataType arrayname[]; Example- 1 public static void main(String args[]) String is data type args is arrayname Example-2 int a[5]; //int is data type and a is arrayname and 5 is size ****How to instantiation array in java******** instance means object syntax datatype array referencevariablename or objectname=new datatype[size]; Example int [] a=new int[5]; //store only 5 elements not 6 Implementation-> Example-1 Example-2 Example-3- How to iterate the array using for each loop in java syntax- for(dataType variablename: arrayname){ //body of loop here } -Write a java program to find out largest number in given array [ 10, 50, 20, 40] - output should be 50