following up on confusion

Discussion in 'Java' started by printdude1968@gmail.com, Mar 19, 2007.

  1. Guest

    I think I have finally figured out where my confusion has come from.
    I won't bore you with the details, but suffice it to say that it has
    to do with passing objects to methods.

    According to the Sun tutorial

    "Reference data type parameters, such as objects, are also passed into
    methods by value. This means that when the method returns, the passed-
    in reference still references the same object as before. However, the
    values of the object's fields can be changed in the method, if they
    have the proper access level"

    so I must have gotten confused with objects being worked on in classes
    which don't have methods. My apologizies to all you you.
     
    , Mar 19, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. willem oosthuizen

    What is wrong with the following code?

    willem oosthuizen, Oct 10, 2003, in forum: VHDL
    Replies:
    9
    Views:
    1,361
  2. Kelvin @ SG
    Replies:
    2
    Views:
    1,161
  3. Stanley
    Replies:
    2
    Views:
    1,691
    Jim Lewis
    Dec 7, 2004
  4. antonio bergnoli
    Replies:
    5
    Views:
    4,598
    Mike Treseler
    Dec 18, 2005
  5. Gary Varga
    Replies:
    0
    Views:
    357
    Gary Varga
    Jul 18, 2003
Loading...

Share This Page