What is lazy val in scala?



What is lazy val in scala?..

Answer / Nitesh Goel

Lazy Val in Scala is a keyword used to define a value that is not computed until it is first accessed. It allows for the deferring of expensive computations or I/O operations until they are actually needed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Make a case for ‘Scala higher order’ functions?

1 Answers  


How Scala supports both Highly Scalable and Highly Performance applications?

1 Answers  


What is option/some/none design pattern in scala?

1 Answers  


What are the Scala Features?

1 Answers  


What is a class in scala?

1 Answers  


Explain que?

1 Answers  


What is the difference between a java future and a scala future?

1 Answers  


What is the advantage of Scala?

1 Answers  


Explain what is Scala?

1 Answers  


What does sortedset in scala collection?

1 Answers  


What is a higher-order function in scala?

1 Answers  


What are left and right in scala?

1 Answers  


Categories