Blog Archives
1 2 3 4 5

23: Scala Traits, Mixins, self-type annotation & DI with Cake pattern

Q01. What is a trait in Scala? A01. In Scala, trait is a collection of abstract and non-abstract methods. You can create trait that can have all abstract methods or some abstract and some non-abstract methods. A variable that is declared either by using val or var keyword in a...

This content is for 30-Day-Full-Access, 100-Day-Full-Access, 200-Day-Full-Access, and 365-Day-Full-Access members only. Register 80+ Free Java FAQs 80+ Free Big Data FAQs
Already a member? Log in here


3 Reasons Why I started Learning Scala

Why learn Scala? and where to use Scala? are very popular questions in forums like LinkedIn, Quora, Stack Overflow, etc. Here is my take on learning Scala with 3 reasons.

#1. I am already proficient in Java

Learning new programming languages (e.g. Scala) and paradigms (e.g.

…

Read more ›



FAQs Data: 01: Getting started with Spark Scala on IntelliJ IDEA

Even though you can download required libraries via Maven pom.xml, in this tutorial will directly download so that you understand the key steps. Intellij IDEA is the most popular IDE for Spark development on Scala. Here are the 12 easy steps that will get you started with your Spark with Scala on IntelliJ IDEA IDE.

…

Read more ›



FAQs Data: 02: Getting started with Spark Scala on IntelliJ IDEA with Maven

This extends FAQs Data: 01: Getting started with Spark Scala on IntelliJ IDEA to package the Spark & run it via command-line. The dependent libraries configured via Maven pom.xml. Make sure Maven is installed on your machine & set in the path.

Step 1: Extend the previous pom.xml file from

TO:

Step 2: Rename “src/test/java”

…

Read more ›



FAQs Data: 03: ScalaTest using IntelliJ IDEA IDE

This extends FAQs Data: 01: Getting started with Spark Scala on IntelliJ IDEA.

Step 1: Note the relevant test libraries in the pom.xml file.

scalatest-maven-plugin is used to run the tests & scalatest_* &

…

Read more ›



FAQs Data: 04: ScalaTest of Spark using IntelliJ IDEA IDE

This extends FAQs Data: 03: ScalaTest using IntelliJ IDEA IDE and FAQs Data: 02: Getting started with Spark Scala on IntelliJ IDEA with Maven.

Step 1: Firstly, let’s rewrite the MySparkApp.scala into more testable & maintainable methods as shown below under “

…

Read more ›



1 2 3 4 5

300+ Java Interview Questions - FAQs

Tutorials on Java & Big Data