Monica Shiralkar wrote:
But why does Java not provide such a feature in case of Integer. Why no provision of Infinity or NAN in case of Integer. Why does java provide this for floating point and not for integer?
I don't think that it is a design issue of Java. Java is standardize on
Twos Complement for whole numbers (integers) and
IEEE 754 for floating point (float and double).
I guess you can argue that Java could have modified the standard to make it more similar, but then you will get the question of why Java didn't follow industry standards.
Henry