One difference from Java that you'll quickly notice in Scala is that unlike Java, Scala does not require you to catch checked exceptions, or declare them in a throws clause. You can declare a throws clause if you wish with the @throws annotation, but it is not required.
Source:
Exception handling with try expressions
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать