KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Applications

Differentiate between the following:

Array Declaration and Initialisation

Java Arrays

36 Likes

Answer

Array declaration tells the compiler about the size and data type of the array so that the compiler can reserve the required memory for the array. This reserved memory is still empty. Array Initialisation assigns values to the array elements i.e. it stores values in the memory reserved for the array elements.

Answered By

20 Likes


Related Questions