Tell me some features which are supported by Java, but not by Scala and Vice versa?



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

Post New Answer

More Scala Interview Questions

Explain the difference between a trait and an abstract class?

1 Answers  


Explain the access modifiers available in scala?

1 Answers  


Explain the main drawback of scala language?

1 Answers  


How do you define a function in scala?

1 Answers  


Explain data types in scala?

1 Answers  


What is a constructor in scala?

1 Answers  


What is a class in scala?

1 Answers  


What does listmap in scala?

1 Answers  


What is guard in Scala’s for-comprehension construct?

1 Answers  


What is the difference between val and var in Scala?

1 Answers  


Who is the father of Scala?

1 Answers  


Explain any five string methods?

1 Answers  


Categories