cswork / OAOpen practice workspace

PaycomOA #6

Q6. Java try / catch / finally

EasyConcept questionJudge-ready

Topics (AI-labelled)Simulation

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.

Input

One line with two signed 32-bit integers a, b.

Output

Output the console text in the original code's execution order: Exception Finally when b=0, otherwise Finally.

Example 1

Input:

4 0

Output:

Exception Finally

Example 2

Input:

4 2

Output:

Finally

Example 3

Input:

-2147483648 -1

Output:

Finally

Editorial

Loading solution…