Array in Java:

Java array is an object which contains elements of a similar data type.

   OR

An array is a container object that holds a fixed number of values of a single type.
-----------------------------

1. There are 2 types of array
   (a) static/Fixed array
   (b) Dynamic array
Note: Java doesnot supports dynamic array.

2. Array always stores homogenous values means single type of values

3. Array stores the values based on index. The index always starts from zero. The last index of the array will be always size-1.

4. We can declare array as follows:
<datatype> <arrayName>[] = new <datatype>[<size>];
<datatype> <arrName>[][] = new <datatype>[<rows>][<cols>];

<datatype> <arrName>[] = {<val1>,<val2>,...};
<datatype> arrName>[][] = {{<val1>,<val2},{<val3>,<val4>}};

5. To find the size of the array we use <ArrName>.length for 1 D array

6. To find the size of the 2 D array
   rows: <arrName>.length;
   columns: <arrName>[<rowIndex>].length;

7. Array can store both primitive and object.

8. Data manipulation viz., adding values, removal, modification is not possible in array at runtime bcoz java supports only static/fixed array.

--------------------------------
Q1: Can we create a blank array?
Q2: Assign 1 D array to 2 D array?
Q3: Assign 2 D array to 1 D array?
Q4: Copy 1 array to another array?
Q5: Sort the array values?
Q6: Find the duplicate values in a array?
Q7: Reverse the array?
Q8: Find the missing values in a array?
Q9: How to compare 2 arrays?
Q10: Addition of 2 arrays?
Q11: Multiplication of 2 arrays (Matrix multiplication)?
Q12: Is it possible to convert the array to collection?
Q13: Can we store values of different datatypes into array?
Q14: Write a programme to find the addition of 2 elements in a array is equal to the given number?
Q15: Print the array without using loops?
Q16. Compare 2 arrays without loops?
Q17. How to find the 2nd largest number from the given array?
Q18. How to find the 3rd largest number from the given array?