Vote Up 0 Vote Down

declaration of an array in java

who can help me in this paragraph
Unlike declarations for primitive data type variables, the declaration of an array variable does not
allocate any SPACE IN MEMORY for the array.
It creates only a STORAGE LOCATION for the reference to
an array.
what means of that paragraph . whenever
SPACE IN MEMORY is equal to STORAGE LOCATION in a computer
and when an array variable will be null


Vote Up 0 Vote Down
.in case of primitive values we are directly assinging the values to the array then values are stored directly in those case of array object with reference type,all its memory locations are of refrncd typ object refernc is stored in those locations.....means class objects are not created,rather only class type refrnc variables are created to store class objects further......when we r not assinging any value to that referenced variable then will get null.
flag | link |

Your Answer

Login before answering

Login with facebook