Interview questions

Scala interview questions – page 5

136 questions. Tap “Show answer” to check yourself.

  1. 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?

  2. How many values of type Unit have in Scala?

  3. 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?

  4. What is object in Scala? Is it a singleton object or instance of a class?

  5. What is the use of Auxiliary Constructors in Scala? Please explain the rules to follow in defining Auxiliary Constructors in Scala?

  6. How to define Factory methods using object keyword in Scala? What is the use of defining Factory methods in object?

  7. What is Case Classes?

  8. What is the main motto of Scala Language?

  9. What is an Expression? What is a Statement? Difference between Expression and Statement?

  10. What is the difference between val and var in Scala?

  11. What are the popular JVM Languages available now?

  12. What is apply method in Scala? What is unapply method in Scala? What is the difference between apply and unapply methods in Scala?

  13. Is Scala a Pure OOP Language? or Java a Pure OOP Language?

  14. Mention the distinction between associate degree object and a category ?

  15. What is a closure in Scala?

  16. In what ways that Scala is healthier than different programming language?

Companies that ask Scala questions