• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayList/Array Inheritance/Polymorphism

 
Talia Sh.
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which uses more memory, ArrayList or an Array?
Also, by using inheritance do you create more or fewer superclasses than if you didn't use inheritance?....Thanks so much!
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Which uses more memory, ArrayList or an Array?


Both are objects in Java. Both are used to store object references. It really depends on your usage.


Also, by using inheritance do you create more or fewer superclasses than if you didn't use inheritance?.


You create fewer superclasses.

BTW are these your assignment questions.?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic