Results 1 to 2 of 2
  1. #1
    tripline is offline Member
    Join Date
    Oct 2011
    Rep Power

    Default Question about object passing to a method? My VOCAB sucks

    In JAVA, When an object is passed to a method, the object’s data is copied into a method parameter.

    If this is false can you tell me why?

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power

    Default Re: Question about object passing to a method? My VOCAB sucks

    In Java you pass the value of reference variables - the method gets a copy of this value. You don't pass objects.

    A more or less standard account of this is to be found at JavaRanch Campfire - Pass By Value, Please

Similar Threads

  1. passing resulset object to client in rmi
    By saurabh1989 in forum JDBC
    Replies: 3
    Last Post: 03-02-2011, 10:52 AM
  2. Passing SWT object to another class
    By Vinaya Lal Shrestha in forum SWT / JFace
    Replies: 0
    Last Post: 04-03-2009, 01:50 PM
  3. passing object as value for checkbox values??
    By Pooja Deshpande in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-17-2009, 11:55 AM
  4. Replies: 9
    Last Post: 05-26-2008, 04:30 AM
  5. Problems passing a scan object to a method
    By xkross in forum New To Java
    Replies: 4
    Last Post: 04-16-2008, 03:56 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