Write a code fragment that will throw an ArithmeticException. Your code fragment should not use the throw statement.

What will be an ideal response?

```
int zero = 0;
int num = 5;
int result = num/zero;
System.out.println(result);
```

Computer Science & Information Technology

You might also like to view...

The main benefit of encryption of a hard drive is to make part of an ROI report.

a. true b. false

Computer Science & Information Technology

You can check system temperature and fan speeds without opening the computer

Indicate whether the statement is true or false

Computer Science & Information Technology