Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Newbie: What is the difference in using import vs. extend?

807601Jun 24 2008 — edited Jul 2 2008
Okay, I have got pretty good at understanding Static Classes, Methods, and Variables as well as Instance, etc.

But, when it comes to import and extend, I still don't understand the difference and when to use either. Yes, you import a API for the Java Library, but you can extend the functionality of a Super/Abstract class into a sub class. But the super clase could be a API from the library, right? Wrong? So do I import or extends. Man, I am confused on this particular subject. Help!!

signed
Java-Gotta-B!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2008
Added on Jun 24 2008
14 comments
602 views