---
title: "What is call by value and call by reference ?"  
description: "What is call by value and call by reference ?"  
author: "Anonymous User"  
published: 2015-07-14  
updated: 2020-09-03  
canonical: https://www.mindstick.com/interview/2702/what-is-call-by-value-and-call-by-reference  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is call by value and call by reference ?

**Call by Value** - When a method receives a value as an argument, the value received is a copy of the original value of the calling method. Even if the value is altered inside the method, it won't be reflected in the variable in the calling method.**Call by reference** - When a method receives reference of a variable, any change made to it in the called method won't be reflected in the calling method.

## Answers

### Answer by Anonymous User

**Call by Value** - When a method receives a value as an argument, the value received is a copy of the original value of the calling method. Even if the value is altered inside the method, it won't be reflected in the variable in the calling method.**Call by reference** - When a method receives reference of a variable, any change made to it in the called method won't be reflected in the calling method.


---

Original Source: https://www.mindstick.com/interview/2702/what-is-call-by-value-and-call-by-reference

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
