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 moreNamed Parameters When calling methods, we can label the arguments with their parameter names. Let us have a look into[…]
Read moreOne of the core values of functional programming is that functions should be first-class.The term indicates that they are not[…]
Read moreFunctions that accept other functions as parameters and/or use functions as return values are known as higher-order functions. In the[…]
Read moreOne good way to think about the Option is that it represents a container, more specifically a container that has[…]
Read moreMartin Odersky released the first version of Scala in 2004. Hybrid: Scala unites two worlds: object-oriented programming and functional programming.[…]
Read moreMetrics Scala Java When it started 2004 1995 Object Oriented/Functional Hybrid. Scala unites two worlds: object-oriented programming and functional[…]
Read moreScala’s match is counterpart of Java’s switch package com.scala.test object TestMatch { def checkMatch(i: Int): String = { val str[…]
Read moreval vs lazy val vs def val : evaluates as soon as you initialise the object and stores the result.[…]
Read moreSingleton Object There is no static concept in Scala.A Singleton Object is a class that has exactly one instance. It[…]
Read more