Scala Trait A trait is like an interface with a partial implementation. In scala, trait is a collection of abstract and non-abstract…
scala
-
-
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…
-
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 Access Modifier Access modifier is used to define accessibility of data and our code to the outside world. You can apply…
-
Scala Functions Scala supports functional programming approach. It provides rich set of built-in functions and allows you to create user defined functions…
-
Scala Queue Queue implements a data structure that allows inserting and retrieving elements in a first-in-first-out (FIFO) manner. In scala, Queue is…
-
Scala Tuple Example: Function Return Multiple Values You can return multiple values by using tuple. Function does not return multiple values but…
-
Scala Array Array is a collection of mutable values. It is an index based data structure which starts from 0 index to…