Double.POSITIVE_INFINITY: This is available in java.lang.Double class of Java.
Syntax:
double java.lang.Double.POSITIVE_INFINITY
A constant holding the positive infinity of type double.
Approach
Java
public class DoublePositiveInfinity {public static void main(String[] args) {System.out.println(Double.POSITIVE_INFINITY);}}
Output:
Infinity
No comments:
Post a Comment