aspose file tools*
The moose likes Beginning Java and the fly likes ArrayList/Array  Inheritance/Polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ArrayList/Array  Inheritance/Polymorphism" Watch "ArrayList/Array  Inheritance/Polymorphism" New topic
Author

ArrayList/Array Inheritance/Polymorphism

Talia Sh.
Greenhorn

Joined: Apr 18, 2006
Posts: 1
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

Joined: Nov 15, 2004
Posts: 1026

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.?


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ArrayList/Array Inheritance/Polymorphism