Can a ArrayList contain heterogenous objects?

201 views
Skip to first unread message

amy

unread,
Dec 14, 2011, 12:31:42 PM12/14/11
to aksforjava

Can a ArrayList contain heterogenous objects?

alok kumar

unread,
Dec 16, 2011, 1:45:48 AM12/16/11
to aksforjava
Yes a ArrayList can contain heterogenous objects. Because a ArrayList
stores everything in terms of Object.
Reply all
Reply to author
Forward
0 new messages