Please describe the difference between “pass by value” and “pass by reference” In Scala, please be Specific.
Pass by value: When we pass some variable to a function if any changes made to those variable inside that function will not have impact at caller side it is called cal by value
Pass by reference: When we pass some variable to a function if any changes made to those variable inside that function will have impact at caller side it is called cal by reference
NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME
Get Answers For Free
Most questions answered within 1 hours.