What is meant by pass-by-value?
If a literal value is passed to a method as an argument that value cannot be changed.
If a variable is passed to a method as an argument, the method is required to return the value of that variable.
If a variable is passed to a method as an argument, only the value of the variable is passed. the method cannot change the value assigned to the original variable.
If a variable is passed to a method as an argument , the variable itself is passed to the method. The method can then change the original variable's value.
I think it's the third one.
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
@ganeshie8
OpenStudy (anonymous):
So far I've been getting all my stuff right so I must being doing a lot better than I originally thought
OpenStudy (anonymous):
@jason1029
OpenStudy (anonymous):
@iambatman
OpenStudy (anonymous):
@TheSmartOne
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
@bibby
OpenStudy (anonymous):
@Nnesha
OpenStudy (anonymous):
@jason1029 Does that mean I'm correct...?
OpenStudy (anonymous):
I guess that it means that you got a answer right
OpenStudy (anonymous):
:x
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
would you mind looking over one more question for me?