156k views
0 votes
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.

User Joshdholtz
by
5.9k points

1 Answer

5 votes

Answer:

Arithmetic Exception is the correct answer to the following blank.

Step-by-step explanation:

Because the BigDecimal class is the class of the Java Programming Language that deal with the double data type numbers for the arithmetic expressions and also for the format conversions and it is the math type class of the Java Programming language which is used in arithmetic operations. So, that's why the following answer is not wrong.

User Peter Lawrence
by
5.6k points