What does Scala's “try” mean without either a catch or finally block?

后端 未结 0 353
温柔的废话
温柔的废话 2021-02-11 18:49

Unlike Java, Scala lets you do a bare \"try\", without either a catch or finally clause:

scala> try { println(\"Foo\") }
Foo

Does this actua

相关标签:
回答
  • 消灭零回复
提交回复
热议问题