开发者

Android Parameter Passing Method

开发者 https://www.devze.com 2023-01-13 23:35 出处:网络
Which parameter passing method is used in Android? Pass by reference or Pass by Value? Please provide an Android Specific example for the same.开发者_开发知识库 All parameter passing in Java is by val

Which parameter passing method is used in Android? Pass by reference or Pass by Value? Please provide an Android Specific example for the same.开发者_开发知识库


All parameter passing in Java is by value.

Here is a nice article with all the details.


just like a normal Java Application:

Objects are passed by reference, primitives are passed by value

0

精彩评论

暂无评论...
验证码 换一张
取 消