Tagged Questions
3
votes
5answers
595 views
When and why would we use immutable pointers?
In Java, the String object is both immutable and also a pointer (aka reference type). I'm sure there are other types/objects which are both immutable and a pointer as well and that this extends ...
3
votes
2answers
220 views
Explanation of satellite data from a programmers perspective
I have started reading Part 2 of Introduction to Algorithms and in the section The structure of the data the author/authors says in the context of sorting a sequence of numbers:
In practice, the ...
30
votes
3answers
8k views
How is a Java reference different from a C pointer?
C has pointers and Java have what is called references. They have some things in common in the sense that they all point to something. I know that pointers in C store the addresses they point to. Do ...