Jun 30 2010

Learn Java Programming: Range of Numeric Values

How to Learn Java Language Tips: Range of Numeric Values
All numeric types have a range of valid values. This range is given by the constants named MAX_VALUE and MIN_VALUE, which are defined in each numeric wrapper class.

The arithmetic operators are overloaded, meaning that the operation of an operator varies depending on the type of its operands. Floating-point arithmetic is performed if any operand of an operator is of floating-point type, otherwise, integer arithmetic is performed.

Values that are out-of-range or are results of invalid expressions, are handled differently depending on whether integer or floating-point arithmetic is performed.

TAGS:

1 Comments on this post

Trackbacks

  1. What Are Binary Shift Operators in Java | Free The Internet wrote:

    [...] form a new value by shifting bits either left or right a specified number of times in a given integral value. The number of shifts (also called the shift distance) is given by the right-hand operand, and the [...]

    July 6th, 2010 at 12:28 pm

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

Spam Protection by WP-SpamFree