SpunkerBaba
SpunkerBaba

Reputation: 2127

Android Parameter Passing Method

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

Upvotes: 2

Views: 4687

Answers (2)

Hélène Martin
Hélène Martin

Reputation: 1441

All parameter passing in Java is by value.

Here is a nice article with all the details.

Upvotes: 5

mhshams
mhshams

Reputation: 16952

just like a normal Java Application:

Objects are passed by reference, primitives are passed by value

Upvotes: 5

Related Questions