InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is not provided by BigDecimal?(a) scale manipulation(b) + operator(c) rounding(d) hashingThis question was posed to me during an internship interview.This key question is from Data Type-BigDecimal topic in chapter Data Types, Variables and Arrays of Java |
|
Answer» RIGHT option is (b) + operator Best EXPLANATION: toBigInteger() converts BigDecimal to a BIGINTEGER.toBigIntegerExact() converts this BigDecimal to a BigInteger by checking for lost INFORMATION. |
|