File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes ADT? What is it?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ADT? What is it??" Watch "ADT? What is it??" New topic
Author

ADT? What is it??

Aditya Herlambang
Greenhorn

Joined: Feb 01, 2007
Posts: 11
Hey guys I just learned about this what is called ADT in java, but still I don't quite understand what it is. I tried reading the books several times but still I can't get the concept of what it is.
There is also a keyword 'extend', what is that actually?? There is also the terminology of collection, Set<E>, bag, and List ADT. What is all that about?? Can someone explain it to me very briefly?? Many thanks to those who are willing to help me
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Aditya,
Welcome to JavaRanch!

ADT stands for abstract data type. It is a data type that can be implemented in different ways. For example, Set is an interface that defines the methods you can expect in a set. AbstractSet implements some of the methods. It is still abstract though as the implementation may vary. There are several concrete implementations of Set like HashSet (uses keys) and TreeSet (uses sorting.)

The "extends" keyword defines a superclass. For example, HashSet extends AbstractSet in that it adds implementation to the abstract type.

Wikipedia explains this in more detail. If you have any more specific questions, feel free to reply to this thread.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Aditya Herlambang
Greenhorn

Joined: Feb 01, 2007
Posts: 11
and what is the relationship between ADT and class?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ADT? What is it??