Scala Constructor In scala, constructor is not special method. Scala provides primary and any number of auxiliary constructors. We have explained each…
scala
-
-
Scala ListSet In scala, ListSet class implements immutable sets using a list-based data structure. Elements are stored internally in reversed insertion order,…
-
Scala this In scala, this is a keyword and used to refer current object. You can call instance variables, methods, constructors by…
-
Scala Custom Exception In scala, you can create your own exception. It is also known as custom exceptions. You must extend Exception…
-
Scala Maps Map is used to store elements. It stores elements in pairs of key and values. In scala, you can create…
-
Scala Thread Methods Thread class provides various methods to deals with thread’s states. You can use these methods to control the flow…
-
Scala Exception Handling Exception handling is a mechanism which is used to handle abnormal conditions. You can also avoid termination of your…
-
Scala Method Overloading Scala provides method overloading feature which allows us to define methods of same name but having different parameters or…
-
Scala Thread There are two ways to create a thread: By extending Thread class By implementing Runnable interface Scala Thread Example by…
-
Scala Field Overriding In scala, you can override fields also but it has some rules that need to be followed. Below are…