Java array - Disadvantages - Core Java

Q.  From the following statements which is a disadvantage of an java array?
- Published on 19 Oct 15

a. An array can hold primitive types data
b. An array has its size that is known as array length
c. An array knows only its type that it contains. Array type is checked at the compile-time
d. An array holds only one type of data

ANSWER: An array holds only one type of data
 

    Discussion

  • Nirja Shah   -Posted on 20 Aug 15
    In java the biggest disadvantage of an array is that it holds a collection of data which is of one type

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)