Simple Type Wrapper, Methods defined by Number class in Java

Simple Type Wrapper: Simple type wrappers are classes in Java which is used to cover simple data types.

Number class: Number class is used to encapsulate the numeric date types like int, float, double, byte, short, long. All these data types are separately wrapped as sub classes in the Number class.

Methods defined by Number class:

int intValue( )

float floatValue( )

double doubleValue( )

byte byteValue( )

short shortValue( )

long longValue( )

Leave a Reply