Default parameters in Scala
Scala provides the ability to give parameters default values that can be used to allow a caller to omit those[…]
Read moreAmplify your java knowledge with javagyansite
Scala provides the ability to give parameters default values that can be used to allow a caller to omit those[…]
Read more
Named Parameters When calling methods, we can label the arguments with their parameter names. Let us have a look into[…]
Read more
One of the core values of functional programming is that functions should be first-class.The term indicates that they are not[…]
Read more
Functions that accept other functions as parameters and/or use functions as return values are known as higher-order functions. In the[…]
Read more
One good way to think about the Option is that it represents a container, more specifically a container that has[…]
Read more
Martin Odersky released the first version of Scala in 2004. Hybrid: Scala unites two worlds: object-oriented programming and functional programming.[…]
Read more
Metrics Scala Java When it started 2004 1995 Object Oriented/Functional Hybrid. Scala unites two worlds: object-oriented programming and functional[…]
Read more
Scala’s match is counterpart of Java’s switch package com.scala.test object TestMatch { def checkMatch(i: Int): String = { val str[…]
Read more
val vs lazy val vs def val : evaluates as soon as you initialise the object and stores the result.[…]
Read more
Singleton Object There is no static concept in Scala.A Singleton Object is a class that has exactly one instance. It[…]
Read more