Thursday, March 31, 2011

Getting the limits of primitive types

To get the primitive type limits in java just use wrapper class' public static variables ... eg. MIN_VALUE,MAX_VALUE . Eg. 
Byte.MIN_VALUE  will give minimum value for byte. Similarily for Double, Float, Integer,  Short..etc

No comments:

Post a Comment

Chitika