Re: why java does not support pointers




"chandu" <chandu.penjarla@xxxxxxxxx> wrote in message
news:1136014041.840278.22760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> hai
> any one tell me why java doesn't support pointers.instead it will do
> the same(means storing address,not arithematic operations on address)
> using reference variables.can any one plese clarify my doubt
> thanks regards

Java references are pointers, but they're not much like C or C++ pointers,
so a different term was used. (Of course, Java references are nothing like
C++ references either...)


.



Relevant Pages

  • Re: how to pass this before supertype constructor has been called
    ... >>Java does not have pointers. ... It has references, ... the semantics of Java then don't write in Java. ... Furthermore, whether or not you use it in the constructor today, the ...
    (comp.lang.java.programmer)
  • Re: how to pass this before supertype constructor has been called
    ... >>whose constructor failed and whose memory has actually been freed and is no ... Java does not have pointers. ... It has references, ... The situation with Java is a bit different, ...
    (comp.lang.java.programmer)
  • Re: Java
    ... >>semantics from passing references by value in Java. ... parameter passing in Java started to ... Java doesn't have pointers in the sense that it doesn't have something ...
    (comp.programming)
  • Re: why kernel in C
    ... >>This could all be integrated into their very bloOOoated kernel. ... Hmmm yet Java environments run on cell phones and the like. ... >>| references and pointers. ... >>with semantics different than pointers. ...
    (comp.os.linux.development.system)
  • Re: why kernel in C
    ... why not in Java, or Python, or Lisp? ... > instead of references. ... references and pointers. ... All of the languages mentioned, including C, are Turing complete, no ...
    (comp.os.linux.development.system)