Is Java “pass-by-reference” or “pass-by-value”?

0 votes
asked Jan 18, 2019 by Hitesh Garg (352 points)  

When learning the concepts from other languages I learned that
if the changes on the passed parameter reflects the changes in the original object then it is pass by reference
but after reading some blogs I found out that java is pass by value although it fulfills the above criteria.
What is the real catch here?

Please log in or register to answer this question.

Welcome to Codingeek Q&A, where you can ask questions and receive answers from other members of the community.