Results 1 to 3 of 3
  1. #1
    Unsub's Avatar
    Unsub is offline Member
    Join Date
    Jan 2010
    Posts
    30
    Rep Power
    0

    Default [Paremeters] in a method(Object expA, Object expB){}

    Is it correct to say that a parameter holds a reference to an object?

    [unsub]

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    See the tutorial page
    Passing Information to a Method or a Constructor
    with special atttention to the section
    Passing Reference Data Type Arguments.

  3. #3
    Unsub's Avatar
    Unsub is offline Member
    Join Date
    Jan 2010
    Posts
    30
    Rep Power
    0

    Default

    Quote Originally Posted by hardwired View Post
    See the tutorial page
    Passing Information to a Method or a Constructor
    with special atttention to the section
    Passing Reference Data Type Arguments.
    Thank you for pointing me into the correct direction.

    This is what I formulate from that page (please correct me if I am incorrect):

    "Parameters refers to the list of variables in a method declaration. Arguments are the actual values that are passed in when the method is invoked. When you invoke a method, the arguments used must match the declaration's parameters in type and order"

    Accroding to the previous exert from the link provided;

    Parameters: are variables.

    Arguments: are the values we pass into a variable when the method is called.


    [unsub]
    Last edited by Unsub; 01-29-2010 at 05:52 AM.

Similar Threads

  1. Replies: 2
    Last Post: 11-26-2010, 02:12 AM
  2. How to run method from a different object?
    By anyone in forum New To Java
    Replies: 10
    Last Post: 01-16-2010, 09:04 PM
  3. Calling Object.method
    By Fedor in forum New To Java
    Replies: 1
    Last Post: 04-11-2009, 01:44 PM
  4. Replies: 1
    Last Post: 03-04-2009, 06:14 PM
  5. Replies: 1
    Last Post: 07-22-2008, 04:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •