Is String Pass by value of Pass by reference?
807589Jul 24 2008 — edited Jul 24 2008Hi All,
In java, if we pass the primitive types to the functions, it is an pass by value. And if we pass the Objects to the functions, it is an pass by reference. But if I pass the String whether it is an Pass by value or pass by reference? And please tell me why?
Thanks in advance,
Sathish