If you create an object using Java's BigDecimal class, and then perform a division that results in a non-terminating decimal division such as 1/3, but specify that an exact result is needed, a(n) ____ is thrown.

A. DivisionByZero
B. ArithmeticException
C. InternalError
D. MismatchException


Answer: B

Computer Science & Information Technology

You might also like to view...

Which is a method of measuring RF power that can be used as a comparison between two values and gives a better picture of the loss or gain?

A. continuous scale B. linear scale C. absolute scale D. relative scale

Computer Science & Information Technology

A totals query allows you to see only the results of aggregate functions, not the detail

Indicate whether the statement is true or false

Computer Science & Information Technology

A syntax error will result if the control statements of a for loop are omitted.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following is an object that adds functionality to a database and is written using VBA?

A) Module B) Report C) Query D) Macro

Computer Science & Information Technology