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 |
Explain the main drawback of scala language?
What is the queue in the scala collection?
What is the latest version of scala?
What are the advantages of case class?
What is Nothing in Scala? What is Nil in Scala? What is the relationship between Nothing and Nil in Scala?
What is bitset in scala?
What are the major advantages of Scala Language? Are there any drawbacks of Scala Language?
In what ways Scala is better than other programming language?
Explain function currying in scala?
Difference between Array and List in Scala?
What is the best Framework to generate REST API documentation for Scala-based applications?
What language is scala written in?