Re: Pointer vs Reference



On Sun, 30 Sep 2007 02:03:04 +0200, Lasse Reichstein Nielsen
<lrn@xxxxxxxxxx> wrote, quoted or indirectly quoted someone who said :

In Java, Objects are not first class values. A variable cannot hold
an object. What they can hold is a reference to an object.

This the key to Java's simplicity. You never access an object other
than via a pointer.

In C++ there are four basic different ways to access an object.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • Re: Issue With ArrayList
    ... Roedy Green Canadian Mind Products ... Rapidly agin'. ...
    (comp.lang.java.programmer)
  • Re: Java serialization over network
    ... Roedy Green Canadian Mind Products ... "Danish studies of 10,000 birds killed revealed that almost all died in ...
    (comp.lang.java.programmer)
  • Re: Clearing the cmd window
    ... Roedy Green Canadian Mind Products ... "The most significant trend in the US industry has been the decline in the amount ...
    (comp.lang.java.help)
  • Re: [Popupmenu]What is the use of Label and Name
    ... Roedy Green Canadian Mind Products ... "Out of 135 criminals, including robbers and rapists, 118 admitted that when they were children they burned, hanged and stabbed domestic animals." ...
    (comp.lang.java.help)
  • Re: truncating text
    ... You have two tools to fine tune the size. ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.help)