Scala Singleton and Companion Object Scala Singleton Object Singleton object is an object which is declared by using object keyword instead by…
Scala Tutorial
-
-
Scala Variables and Data Types Variable is a name which is used to refer memory location. You can create mutable and immutable…
-
Scala Break Break is used to break a loop or program execution. It skips the current execution. Inside inner loop it breaks…
-
Scala Higher Order Functions Higher order function is a function that either takes a function as argument or returns a function. In…
-
Scala Stream Stream is a lazy list. It evaluates elements only when they are required. This is a feature of scala. Scala…
-
Scala Vector Vector is a general-purpose, immutable data structure. It provides random access of elements. It is good for large collection of…
-
Scala Case Classes and Case Object Scala case classes are just regular classes which are immutable by default and decomposable through pattern…
-
Scala Inheritance Inheritance is an object oriented concept which is used to reusability of code. You can achieve inheritance by using extends…
-
Scala String Interpolation Starting in Scala 2.10.0, Scala offers a new mechanism to create strings from your data. It is called string…
-
Scala while loop In Scala, while loop is used to iterate code till the specified condition. It tests boolean expression and iterates…