For example, if a thrown exception object has class IllegalArgumentException, that indicates someone passed an illegal argument to a method. Sometimes you will want to indicate that a method encountered an abnormal condition that isn't represented by a class in the Throwable family of java.lang.
Actually, zero is neither a negative or a positive number. The whole idea of positive and negative is defined in terms of zero. Negative numbers are numbers that are smaller than zero, and positive numbers are numbers that are bigger than zero. Since zero isn't bigger or smaller than itself (just like you're not older than yourself, or taller than yourself), zero is neither positive nor negative.
Positive integers are all the whole numbers greater than zero: 1, 2, 3, 4, 5, ... . Negative integers are all the opposites of these whole numbers: -1, -2, -3, -4, -5, â¦. We do not consider zero to be a positive or negative number. For each positive integer, there is a negative integer, and these integers are called opposites. For example, -3 is the opposite of 3, -21 is the opposite of 21, and 8 is the opposite of -8. If an integer is greater than zero, we say that its sign is positive.