Tuesday, December 30, 2008

Number

The abstract class Number defines a super class that is implemented by the class that wraps the numeric type’s byte, short, int, long and double. Number has abstract methods that return the value of the object in each of the different number formats. That is, double value returns the value double, float value returns the value float and so on. The values returned by these methods can be rounded. Number has six concrete subclasses that hold explicit values of each numeric type Double, Float, Byte, short, Integer and Long.

0 comments: