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.
About Question enthuware.ocajp.i.v7.2.1252 :
Moderators: Site Manager, fjwalraven
-
- Posts: 3
- Joined: Thu Jan 02, 2014 12:52 pm
- Contact:
-
- Site Admin
- Posts: 10113
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1252 :
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.
-Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 14
- Joined: Mon Nov 03, 2014 5:18 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1252 :
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.
![Wink ;)](./images/smilies/icon_e_wink.gif)
![Razz :P](./images/smilies/icon_razz.gif)
![Wink ;)](./images/smilies/icon_e_wink.gif)
-
- Site Admin
- Posts: 10113
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1252 :
You are right. Fixed.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 3 guests