Does scala and java support call-by-name?
Answer / Prashant Udainia
Yes, both Scala and Java support call-by-name. In Scala, you can use byName parameters for this purpose, while in Java, you can use MethodHandle or Functional Interfaces to achieve similar results.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are throws in scala?
What is 'Type Inference' in Scala?
What is exception handling in scala?
Explain the functionality of yield?
When compare to Normal Class, What are the major advantages or benefits of a Case-class?
What are the Advantages of Functional Programming (FP) or Advantages of Pure Functions?
Is scala an oop?
What do you mean by a case class in scala?
Explain the difference between a trait and an abstract class?
What is unapply method in scala?
Explain any five string methods?
What does set in scala collection?