Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between call-by-value and call-by-name function parameters?



What is the difference between call-by-value and call-by-name function parameters?..

Answer / Ravindra Kumar Suman

Call-by-value and call-by-name are two methods for passing arguments to functions in programming languages, including Scala. In Call-by-value, the actual argument value is evaluated before it's passed to the function, while in Call-by-name, the function call evaluates the argument expression only when its value is needed inside the function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

How do you define a function in scala?

1 Answers  


What is a flatmap in scala?

1 Answers  


Does a Companion object access private members of it’s Companion class in Scala?

1 Answers  


What does raw method in scala string interpolation?

1 Answers  


Like Java, what are the default imports in Scala Language?

1 Answers  


What is the advantage of Scala?

1 Answers  


What is the difference between :: and #:: in scala?

1 Answers  


What is currying in scala?

1 Answers  


What is pattern matching?

1 Answers  


What is for-comprehension in scala?

1 Answers  


What are the Java’s OOP constructs not supported by Scala? What are the Scala’s OOP constructs not supported by Java? What are the new OOPs constructs introduced by Scala, but not supported by Java?

1 Answers  


What do you mean by option in scala and why it is used?

1 Answers  


Categories