All About Class Number in Java

The Abstract class Number is the super class for all numerical primitive types like- Byte,Short,Integer,Long,Float,Double. This class defines the conversion functions that these classes implement. The structure of Number class is as follows:

public abstract Class java.lang.Number extends java.lang.Object implements Serializable{
public Number();
public abstract double doubleValue();
public abstract float floatValue();
public abstract int intValue();
public abstract long longValue();
public byte byteValue();
public short shortValue();
All About Class Number in Java All About Class Number in Java Reviewed by Animesh Chatterjee on September 06, 2018 Rating: 5

No comments:

Powered by Blogger.