Daniel Thoma: Frage zu Vector

Beitrag lesen

Hallo Martin Jung,

Exception instanceof Error == false

Ja das stimmt natürlich. Aber hier geht es nicht um Exception im Sinne von "Instanz einer Exception-Klasse" sondern im um alles, was irgendwie geworfen werden kann.
Zitat aus der VM Spezifikation Kapitel "Exceptions":
Every exception is represented by an instance of the class Throwable or one of its subclasses;

Noch ein Link auf die Spec, da die nicht so einfach zu finden ist, wenn man nicht weiß, wo man suchen muss: http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html

Grüße

Daniel