Common Ancestor to Java Array and List

后端 未结 6 1953
闹比i
闹比i 2020-12-18 19:54

In .NET, both array and list have Enumerable as ancestor, so a method that accept Enumerable as an argument can receive both array and list as its argument. I wonder if ther

6条回答
  •  爱一瞬间的悲伤
    2020-12-18 20:22

    Both derive from java.lang.Object. However, this isn't collection-related, which I think is what you're looking for.

提交回复
热议问题