Java Program for wrapper class. Write a java program for using any five methods for wrapper class.
Program
class Wrappercls
{
public static void main(String args[])
{
double no1=0;
double no2=0;
double no3=no1/no2;
System.out.println("no3:"+no3);
System.out.println("isInfinite:"+Double.isInfinite(no3));
System.out.println("isNaN:"+Double.isNaN(no3));
System.out.println("Max Value:"+Double.MAX_VALUE);
System.out.println("Min Value:"+Double.MIN_VALUE);
System.out.println("Positive Infinity:" + Double.POSITIVE_INFINITY);
System.out.println("Negative Infinity: " + Double.NEGATIVE_INFINITY);
}
}
No comments:
Post a Comment