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.
Thanks for the welcome!!! Are you sure that there's no built-in ADT in java??? Because I think that I've seen somewhere that float is a built-in ADT provided by java. And by the way, I was unable to access the link you provided.
author and iconoclast
Originally posted by Hagaya Hatake: Thanks for the welcome!!! Are you sure that there's no built-in ADT in java??? Because I think that I've seen somewhere that float is a built-in ADT provided by java.
Java has "primitive types", and it has "classes". I suppose some people might want to call primitive types "ADTs" (a very old-fashioned term; not used much these days!) but usually the term applies to more complex types than byte, short, char, int, long, float, double, or boolean (Java's built-in primitive types.)
But if you're asking what's the difference between primitives and objects: primitives are indeed "built-in", rather than being defined by Java code as objects are. You can't define your own primitives. Primitives are stored directly in variables, while objects are stored in a separate area of memory called the "heap", and variables contain only a reference to them.
And by the way, I was unable to access the link you provided.
The server it's on is down for the moment; try back later.