Scala
-
Beginner’s Guide to Scala
Introduction Scala was designed by Martin Odersky, a professor at École Polytechnique Fédérale de Lausanne (EPFL) in Switzerland and a German computer scientist. Martin started working on creating Scala in 2001, and it was first released in 2004. Scala stands for Scalable Language. It is a general-purpose, object-oriented language which has a few commonalities with the Java programming language. It provides support for functional programming. Many of Scala’s design decisions were aimed to address the drawbacks of the Java programming…
-
IF ELSE in Scala
Source: Scala – IF ELSE Statements Like many other applications and programming languages, Scala also has a decision making conditional if-else statements. The if statement conditional block is executed if the condition is found to be True, if not then the else conditional block is implemented (only if, else statement is present). Generally, the else statement has no condition; it is executed only when the if condition is False. So in short if-else statements consists of boolean expressions which work…
-
Operators in Scala
Note: This tutorial is a continuation of the Scala Tutorial Series. If you have not read Beginners Guide to Scala and IF ELSE in Scala, then check them out. Introduction An operator is a symbol or a function that signifies an operation to be performed with one or more operand. There are many different types of operators, while an operand can be thought of as a variable. Operators are the base of all the programming language. Operators allow us to…
-
Variables in Scala
Check out DataCamp’s recently launched Scala course: Introduction to Scala. Scala is widely used by data scientists when dealing with the large volumes of the data used with the Apache Spark together in the field of Big Data. It is both object-oriented and functional programming language with many other essential features listed below: Scala is known to be a statically typed language, where the data type for the variable is defined before it is used. The type checking is done…
-
Scala Classes and Objects
DataCamp has recently launched their first Scala course: Introduction to Scala. Check it out! Also, check out the following tutorials: Beginners Guide to Scala IF ELSE in Scala Operators in Scala Lists in Scala Introduction Source In general, Object-Oriented Programming (OOP) consists of classes and objects and aims to implement real-world entities like polymorphism, inheritance. OOPs makes development way faster and cheaper with better software maintainability. The primary reason for this magic is the number of features it supports; you…
-
Scala Traits
DataCamp has recently launched their first Scala course: Introduction to Scala. Check it out! You may also be interested in reading the following tutorials: Beginners Guide to Scala IF ELSE in Scala Operators in Scala Lists in Scala Scala Classes and Objects Introduction A Trait is a concept pre-dominantly used in object-oriented programming, which can extend the functionality of a class using a set of methods. Traits are similar in spirit to interfaces in Java programming language. Unlike a class,…
-
Basics of Functions and Methods in Scala
Interested in learning more about Scala? Take DataCamp’s Introduction to Scala course. Scala is a functional programming language where it contains both functions as first-class values and methods and has both similarities and dissimilarities. Both the functions and methods are a block of the reusable code also used to store the repeated code in one place, which makes a function call to performs a particular specific task. They also make code easier to debug and modify. However, functions are an…
-
Scala slice function
Today we will look into Scala slice function. Scala slice Scala slice function is available in the following API classes: Scala Array API String API Scala Collection API We will pick-up each API and discuss them in-depth with suitable examples in next section. Scala slice function usage In Scala API, ‘slice’ function is used to select an interval of elements. It takes two parameters of “Int” type and returns subset or whole or none element(s) of original Collection (or String…
-
Scala Advanced Interview Questions and Answers
Before reading this post, please go through my previous two posts at “Scala Basic” and “Scala Intermediate” Interview Questions and Answers to get some basic knowledge about Scala Language. Scala Advanced Interview Questions In this post, we are going discuss about some Advanced Scala Interview Questions that are related to Scala Advanced concepts and also some Real-time project related concepts. Note: As this list has already become very large, I’m going to deliver another post with remaining Questions and Answers.…