This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: ArrayList/Array Inheritance/Polymorphism