Unkontrollierte Ausnahme in Java

/* The only unchecked exception in Java are objects of type RunTimeException
   or any of its descendants. Examples include ArithmeticException, NullPointerException,
   IndexOutOfBoundsException, NumberFormatException, InputMismatchException, etc...
*/

// The method below generates an ArithmeticException, which is an unchecked exception,
// and as such requires no throws clause in its header
public void throwArithmeticException() {
	System.out.println(10/0); // Yields an ArithmeticException
}


 
Wissam