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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
joao.pedro.ferreira
Posts: 3
Joined: Thu Jan 02, 2014 12:52 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10113
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Kevin_C
Posts: 14
Joined: Mon Nov 03, 2014 5:18 am
Contact:

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

Post 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 ;)

admin
Site Admin
Posts: 10113
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests