what is the difference between pass by reference and call by reference?

后端 未结 3 748
予麋鹿
予麋鹿 2021-01-02 15:05

what is the difference between pass by reference and call by reference in java ?

3条回答
  •  一整个雨季
    2021-01-02 16:01

    You asked but, "pass by reference" and "call by reference" are same thing.

    If you are looking for difference between pass by reference and pass by value check answers to

    Pass by reference or pass by value?

    But remember, Java passes parameter by value.

    http://javadude.com/articles/passbyvalue.htm

    http://academic.regis.edu/dbahr/GeneralPages/IntroToProgramming/JavaPassByValue.htm

提交回复
热议问题