When we are sending the serialized array object thro the network, what is being passed ? is the value or the reference ?

Showing Answers 1 - 5 of 5 Answers

karthik

  • Sep 15th, 2005
 

it is the streams that are passed .

  Was this answer useful?  Yes

kiran

  • Sep 17th, 2005
 

wht iam thinking is we can't pass PASS BY VALUE in java so the ans is PASS BY REFERENCE.

  Was this answer useful?  Yes

sarat

  • Sep 29th, 2005
 

hi,

the answer is pass by by reference but internally it is send the copy of values

  Was this answer useful?  Yes

Dileep

  • Oct 21st, 2005
 

Java has only pass by value associated with it. Even when an Object is passed the value of Object reference in the Stack is passed(not the actual Object in Heap) But since the value passed in is a reference to an Object any modification to the data in this Object will modify the data in original Object. But any assignment operation done to the passed value will not affect the orignal object.

void test(Object Oval){

OVal.i = 10;//will change value of 'i' in original Object

Object n = new Object();

OVal = n; // will not have any affect on orginal Object

}

Answer to question is Pass by Value.A copy is passed through network

catchsumang

  • Dec 27th, 2005
 

When ur passing serialized array are any data through the network, they pass in the form of objects to provide security.....so when objects are passed they are passed by references....but implicitly by values ..so they are passed by REFERENCES.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions