- All members of one array has the same data type.
- Array is fix length variable.
- Array are known as fixed length variables that stores homogeneous (similar type) type of data.
- In java we can create an array as "type name of array [] = new type[size]" Example: int x[] = new int[10]; Test t[] = new Test[3];
- There is an inbuild keyword "Length" that return the size of an array: myArray.length
- String is known as collection of arrays but in java it is a class
- String is known as immutable class. immutable means once the object be
created no one can modify the object. String n1 = "NIIT"; we can not change n1
فریبا
یکشنبه 15 مردادماه سال 1391 ساعت 12:25 ب.ظ