• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAVA Collection frame work

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How those data structures work is independent of any programming language.
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic