Tell me some features which are supported by Java, but not by Scala and Vice versa?
Answer / Mandeep Kumar Srivastava
Java supports multithreading with the 'synchronized' keyword, while Scala uses the 'akka' library for concurrent programming. Java also has the 'final' keyword to restrict a variable or method from being overridden, which is not directly supported in Scala.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the difference between a trait and an abstract class?
Explain the access modifiers available in scala?
Explain the main drawback of scala language?
How do you define a function in scala?
Explain data types in scala?
What is a constructor in scala?
What is a class in scala?
What does listmap in scala?
What is guard in Scala’s for-comprehension construct?
What is the difference between val and var in Scala?
Who is the father of Scala?
Explain any five string methods?