Array:
- An array is a group of like typed variables that are referred to a common name.
- A specific elements in an array is accessed by its index.
One dimensional array:
- List of like typed variables
- Array declaration type var-name[size];
26/4/17
Type specifies an type of data being allocated and size determines number of elements in array.
Java strictly checks to make sure that you do not try to store or reference value outside the range of array.
Greater value beyond the limit causes a run time error.
Two Step:
- Declared a variable in a desired array type.
- Allocate a memory that will hold array using new and assign a new variable.
Multidimensional array:
Actually array of array.
Java does not use pointer
String data type is used.
Separators:
- Most commonly used separator in java is semicolon.
- period(.) used to separate packages names from subpackages and classes.