3
Answers

reference type issue ?

SUNIL GUTTA

SUNIL GUTTA

11y
955
1
Hi friends

well i got some dam silly doubt may be here it is

Well array is a reference type right of array have n elements then its length will be "n"  via array.length property

But when array has nothing in it like say length is "ZERO" i we try to find out :) 

As array is a reference type it stores default "NULL" i.e value types "ZERO" as known ..

So,wen there are no elements present in it HOW COME LENGTH BECOME "ZERO" is there any conversion going on  :)
How come we decide a length of a nothing present :-p 

Thank you
Answers (3)