2

Which parameter passing method is used in Android? Pass by reference or Pass by Value? Please provide an Android Specific example for the same.

1
  • Ehh, the same way java work, since this is java... Commented Aug 27, 2010 at 17:38

2 Answers 2

5

All parameter passing in Java is by value.

Here is a nice article with all the details.

Sign up to request clarification or add additional context in comments.

Comments

5

just like a normal Java Application:

Objects are passed by reference, primitives are passed by value

1 Comment

The article posted by Hélène points out that Object references are passed by value, which has a different meaning than with primitives where their value is what's passed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.