Interview questions
Scala interview questions – page 5
136 questions. Tap “Show answer” to check yourself.
-
What is the main design decision about two separate keywords: class and object in Scala? How do we define Instance members and Static members in Scala?
-
How many values of type Unit have in Scala?
-
What is call-by-name? Does Scala and Java support call-by-name? What is the difference between call-by-value and call-by-name function parameters?
-
What is object in Scala? Is it a singleton object or instance of a class?
-
What is the use of Auxiliary Constructors in Scala? Please explain the rules to follow in defining Auxiliary Constructors in Scala?
-
How to define Factory methods using object keyword in Scala? What is the use of defining Factory methods in object?
-
What is Case Classes?
-
What is the main motto of Scala Language?
-
What is an Expression? What is a Statement? Difference between Expression and Statement?
-
What is the difference between val and var in Scala?
-
What are the popular JVM Languages available now?
-
What is apply method in Scala? What is unapply method in Scala? What is the difference between apply and unapply methods in Scala?
-
Is Scala a Pure OOP Language? or Java a Pure OOP Language?
-
Mention the distinction between associate degree object and a category ?
-
What is a closure in Scala?
-
In what ways that Scala is healthier than different programming language?