Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,276

    Re: Creating objects from methods

    The value of a variable that holds a reference to an object is passed to a method. The variable that holds that reference is not accessible in the method that the value is passed to and can't be...
  2. Replies
    7
    Views
    1,276

    Re: Creating objects from methods

    Because there is not a value assigned to the variable BEFORE it is used.


    No. The value of the variable is passed, not a reference to the variable.
  3. Replies
    7
    Views
    1,276

    Re: Creating objects from methods

    The error message is in good English. Do you understand what it says?

    Do some research on pass parameters by value. Java uses pass by value when passing parameters to a method.
Results 1 to 3 of 3