Which of the following is false?
a. Since BigInteger is not a primitive type, we can’t use the arithmetic, relational and equality operators with BigIntegers.
b. BigInteger method compareTo compares the BigInteger number that calls the method to the method’s BigInteger argument, and returns -1 if the BigInteger that calls the method is less than the argument, 0 if they’re equal or 1 if the BigInteger that calls the method is greater than the argument.
c. The value 1 can be implicitly converted to a BigInteger.
d. BigInteger can represent integer values larger than what primitive type long can represent.
c. The value 1 can be implicitly converted to a BigInteger. Actually, there are no implicit conversions from primitive types to BigInteger. Class BigInteger defines the constant ONE to represent the value 1.
You might also like to view...
________ involves reworking programs to make them clearer and easier to maintain while preserving their correctness and functionality.
(a) Object-oriented programming (b) Refactoring (c) Agile software development (d) LAMP ANS: (b) Refactoring.
Which of the following event properties or methods returns a Boolean value that indicates whether an event can have its default action terminated?
A. evt.stopImmediatePropagation() B. evt.stopPropogation() C. evt.cancelable D. evt.defaultPrevented