Tuesday, February 21, 2012

Java is Pass-by-value

In java there is no pass by reference. Its having only "pass by value".

In "primitive data type" only the value is getting passed. In object only the object reference getting passed as value. 


Refer : http://javadude.com/articles/passbyvalue.htm for detailed example compare with C++ and C.

No comments :

// Below script tag for SyntaxHighLighter