no. their is no constant/keyword like Infinity in java. Still you get a result Infinity when you work with floating point literals
"Infinity" is produced if a floating point operation creates such a large floating-point number that it cannot be represented normally. "Infinity" is a special value that represent the concept of positive infinity.
1.0 / 0.0 -> Infinity
Leave a comment: