package array; public class ArrayDocs { /* * ------------------ Array --------------------- * * int a = 900; * a= 500; * sout(a); // 500 * * # use to store and processing static(fixed size) multiple data * # also called collection of homogeneous data * # its a collection/group of multiple data having similar data type with fixed size * * # data stored on the basis of indices.(index starts from 0) * # random access * # contains dublicate data * # contiguous memory allocation * # array itself is an object in java. * * syntax : * data_type array_name[] = new data_type[size]; * * eg : * int bprice[] = new int[500]; * String[] capacity = new String[90]; * * float []height = new float[5000]; * * char vs[] = new char[5]; * * // here Book and Employee data_type is not present in java so it is like a class where object can be stored * Book books[] = new Book[200]; * Employee emps[] = new Employee[800]; */ }