File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes JAVA Collection frame work 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 » Java in General
Bookmark "JAVA Collection frame work" Watch "JAVA Collection frame work" New topic
Author

JAVA Collection frame work

veena bijur
Ranch Hand

Joined: May 16, 2011
Posts: 67
hi

Everyone,

DataStructure in Java works same as in C language?

1. LinkedList,Binary tree, Queue,Stack, only thing all are built-in classes in java.we need to decide which one to use and all.
But internally works same as learnt in C language?

Please help.

Thanks
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14278
    
  21

How those data structures work is independent of any programming language.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

veena bijur wrote:
DataStructure in Java works same as in C language?

1. LinkedList,Binary tree, Queue,Stack, only thing all are built-in classes in java.we need to decide which one to use and all.
But internally works same as learnt in C language?


They work according to what their docs say they do, which is pretty much in accordance with how those types are described to behave in a data structures text book. Similarly named data structures in C will behave similarly, if they're written correctly.

As for "internally," if you mean how they're implemented, then that is not specified. Each Java version or implementation could be different from the others, and they could all be very different from C. In fact it's guaranteed that they'll be different from C to some extent. But the general structure and flow will probably be pretty similar among most implementations.
 
Don't get me started about those stupid light bulbs.
 
subject: JAVA Collection frame work