Features of Scala There are following features of scala: Type inference Singleton object Immutability Lazy computation Case classes and Pattern matching Concurrency…
Scala Tutorial
-
-
Scala Final Final is a keyword, which is used to prevent inheritance of super class members into derived class. You can declare…
-
Scala Object and Class Unlike java, scala is a pure object oriented programming language. It allows us to create object and class…
-
Scala Trait A trait is like an interface with a partial implementation. In scala, trait is a collection of abstract and non-abstract…
-
History of Scala Scala is a general purpose programming language. It was created and developed by Martin Odersky. Martin started working on…
-
Scala Finally The finally block is used to release resources during exception. Resources may be file, network connection, database connection etc. the…
-
Scala Pattern Matching Pattern matching is a feature of scala. It works same as switch case in other programming languages. It matches…
-
Scala Try Catch Scala provides try and catch block to handle exception. The try block is used to enclose suspect code. The…
-
Scala Abstract Class A class which is declared with abstract keyword is known as abstract class. An abstract class can have abstract…
-
Scala for loop In scala, for loop is known as for-comprehensions. It can be used to iterate, filter and return an iterated…