Mention Some keywords which are used by Java and not required in Scala? Why Scala does not require them?
Answer Posted / Rakesh Kumar Pal
Some Java keywords that are not required in Scala include `abstract`, `final`, `native`, `synchronized`, `transient`, and `volatile`. These keywords are either unnecessary due to being implied or replaced by better alternatives in Scala. For example, `abstract` is implicitly used for abstract classes in Scala. Similarly, `final` is not needed as all values in Scala are immutable unless explicitly declared otherwise.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers