PaycomOA #6
Q6. Java try / catch / finally
简单概念题可在线判题
考点(AI 标注)模拟/实现
You are given the integer inputs to the original divide(a,b) code. When the division throws, catch prints Exception ; finally always prints Finally . The return value is never printed. Added by this site: to make standard output judgeable, the text produced on System.err in chronological order is merged into a single console trace.
输入格式
One line with two signed 32-bit integers a, b.
输出格式
Output the console text in the original code's execution order: Exception Finally when b=0, otherwise Finally.
样例 1
输入:
4 0
输出:
Exception Finally
样例 2
输入:
4 2
输出:
Finally
样例 3
输入:
-2147483648 -1
输出:
Finally