Decision Makings Looping November 27, 2020December 21, 2020wefru Java Decision Makings Looping 4 Created on November 27, 2020 By wefru Decision Makings Looping TEST YOUR SKILLS BRODLY 1 / 10 Q.141 Which of the following is the advantage of BigDecimal over double? Syntax Memory usage Garbage creation Precision 2 / 10 Q.142 Which of the below data type doesn’t support overloaded methods for +,-,* and /? int float double BigDecimal 3 / 10 Q.143 What will be the output of the following Java code snippet?double a = 0.02;double b = 0.03;double c = b - a;System.out.println(c);BigDecimal _a = new BigDecimal("0.02");BigDecimal _b = new BigDecimal("0.03");BigDecimal _c = b.subtract(_a);System.out.println(_c); 0.009999999999999998 0.01 0.009999999999999998 0.011111111111136 0.009999999999999998 0.015401 998 0.01 4 / 10 Q.144 What is the base of BigDecimal data type? Base 10 Base 100 Base 10000 Base 1000000 5 / 10 Q.145 What is the limitation of toString() method of BigDecimal? There is no limitation toString returns null toString returns the number in expanded form toString uses scientific notation 6 / 10 Q.146 Which of the following is not provided by BigDecimal? scale manipulation + operator rounding hashing 7 / 10 Q.147 BigDecimal is a part of which package? java.lang java.math java.util java.io 8 / 10 Q.148 What is BigDecimal.ONE? wrong statement custom defined statement static variable with value 1 on scale 10 static variable with value 1 on scale 0 9 / 10 Q.149 Which class is a library of functions to perform arithmetic operations of BigInteger and BigDecimal? MathContext MathLib BigLib BigContext 10 / 10 Q.150 How to format date from one form to another? SimpleDateFormat DateFormat SimpleFormat DateConverter Your score isThe average score is 45% LinkedIn Facebook Twitter VKontakte 0% Restart quiz