Scala Constructor In scala, constructor is not special method. Scala provides primary and any number of auxiliary constructors. We have explained each…
Scala Tutorial
-
-
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 Custom Exception In scala, you can create your own exception. It is also known as custom exceptions. You must extend Exception…
-
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 Exception Handling Exception handling is a mechanism which is used to handle abnormal conditions. You can also avoid termination of your…
-
Scala Method Overriding When a subclass has the same name method as defined in the parent class, it is known as method…
-
Scala Throw keyword You can throw exception explicitly in you code. Scala provides throw keyword to throw exception. The throw keyword mainly…
-
Scala Field Overriding In scala, you can override fields also but it has some rules that need to be followed. Below are…