Select the correct answerWhich of the following is the advantage of BigDecimal over double?OptionsGarbage creationMemory usageSyntaxPrecisio
Question
Select the correct answerWhich of the following is the advantage of BigDecimal over double?OptionsGarbage creationMemory usageSyntaxPrecisio
Solution
The advantage of BigDecimal over double is Precision.
Similar Questions
Select the correct answerWhich of the following is not provided by BigDecimal?Options+ operatorscale manipulationroundinghashing
Select the correct answerWhat is the limitation of toString() method of BigDecimal?OptionstoString returns the number in expanded formtoString returns nullThere is no limitationtoString uses scientific notation
elect the correct answerWhat is BigDecimal.ONE?Optionsstatic variable with value 1 on scale 10custom defined statementwrong statementstatic variable with value 1 on scale 0
Select the correct answerWhat will be the output of the following Java code snippet? double ct1 = 0.02; double ct2 = 0.03; double ct3 = ct2 - ct1; System.out.println(ct3); BigDecimal _ct1 = new BigDecimal("0.02"); BigDecimal _ct2 = new BigDecimal("0.03"); BigDecimal _ct3 = ct2.subtract(_ct1); System.out.println(_ct3);Options0.010.0099999999999999980.0099999999999999980.010.010.010.0099999999999999980.009999999999999998
Select the correct answerWhich class is a library of functions to perform arithmetic operations of BigInteger and BigDecimal?OptionsMathLibMathContextBigLibBigContext
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.