SUNIL GUTTA

SUNIL GUTTA

  • NA
  • 1k
  • 385.6k

reference type issue ?

Mar 11 2013 7:03 AM
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)