Array
Array
Sandeep Kulange
• Disadvantage Of Array
1. We can not resize array at runtime.
2. It requires continuous memory.
3. Insertion and removal of element from array is a time consuming job.
4. Using assignment operator, we can not copy array into another array.
5. Compiler do not check array bounds( min and max index ).
• If we try to store incorrect type of object into array then JVM throws
ArrayStoreException.
• Consider the following code: