hi

what is difference between call by value and call by reference
[69 byte] By [TUBATIa] at [2007-11-27 9:51:48]
# 1
Hi,Did you try to google?
kajbja at 2007-7-13 0:20:59 > top of Java-index,Java Essentials,Java Programming...
# 2

Call by value means, you are passing the value of the variable.

Call by reference means that you are just passing a reference.

In java, everything is called by value.

Like if you pass an object to a method (which actually contains an address of that refers to an object in memory), what exactly is passed is the address (keep in mind that, the address is the value that this object contains). So value is passed.

In C/C++ where you deal with pointers, you can pass references.

Dheeraj_Gabaa at 2007-7-13 0:20:59 > top of Java-index,Java Essentials,Java Programming...