Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1252 :

Posted: Fri Jan 03, 2014 6:20 am
by joao.pedro.ferreira
This question is related with type immutable ? char is immutable and char[] is mutable?
I don't understand why char c don't change the value and char[ ] cA change.

Re: About Question enthuware.ocajp.i.v7.2.1252 :

Posted: Fri Jan 03, 2014 11:45 am
by admin
No, it is not related to mutability. It is related to pass by value/pass by reference. This discussion might be helpful for you: http://stackoverflow.com/questions/4048 ... -reference

-Paul.

Re: About Question enthuware.ocajp.i.v7.2.1252 :

Posted: Tue Nov 04, 2014 9:54 am
by Kevin_C
Just something I've noticed. The println has value1 + ", " (with a space) + value2, but all answers have value1 + "," (without a space) + value2. So none of the answers would be correct. :P ;)

Re: About Question enthuware.ocajp.i.v7.2.1252 :

Posted: Tue Nov 04, 2014 1:02 pm
by admin
You are right. Fixed.
thank you for your feedback!