Alex Rivera | Logout

Common Ancestor to Java Array and List

Asked 2010-03-14T13:45:44.657
23

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 there is a similar thing in Java?

Edit
Report

1 Answer

1

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

answered 2010-03-14T13:47:53.937

Your Answer