Results 1 to 5 of 5
  1. #1
    --> xeiyne! is offline Member
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Default How to create pass by reference??

    pls reply.. i need an idea.

  2. #2
    --> xeiyne! is offline Member
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Default

    or short program that contain pass by reference.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Java is always pass by value. Of course if you use reference variables, the values will refer to objects. Having said that, I'm not sure precisely what it is that you are looking for. You may do well to clarify what your goal here is, not what technique you're trying to use to achieve it.

    Much luck!

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by --> xeiyne! View Post
    pls reply.. i need an idea.
    Can you explanin bit more that what you are exactly looking for? In simple words Java is pass by value, not by reference.

  5. #5
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,524
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by --> xeiyne! View Post
    pls reply.. i need an idea.
    Use C++?

    kind regards,

    ps. Java can't pass parameters by reference; it uses pass by value.

Similar Threads

  1. Don't pass by reference
    By Lyven in forum Advanced Java
    Replies: 6
    Last Post: 11-16-2009, 06:06 PM
  2. Object and reference
    By katie in forum New To Java
    Replies: 2
    Last Post: 10-19-2009, 03:45 PM
  3. Pass-by-reference
    By popjava in forum New To Java
    Replies: 1
    Last Post: 10-19-2009, 03:45 PM
  4. removing reference
    By ajith_raj in forum Advanced Java
    Replies: 4
    Last Post: 02-12-2009, 11:46 AM
  5. Getting the Object Reference Name
    By Deathmonger in forum New To Java
    Replies: 2
    Last Post: 03-12-2008, 02:51 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
  •