All About Class Number in Java


The Abstract class Number is the super class for all numerical primitive types like-integer,long,float,double. The structure of Number class is as follows:

public abstract Class java.lang.Number extends java.lang.Object{
//Methods:
public abstract double doubleValue(();
public abstract float floatValue(();
public abstract int intValue(();
public abstract long longValue(();
}
 
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.