Bookmark Topic Watch Topic
  • New Topic

code "int arr=new int[0]"  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Report post to moderator
explain that why declaring an array with above syntax nad then calling the length function on it do not gice any exception.
i mean explain the above code
 
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Not an advanced question. Also, please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!