Reason and handling of VM exceptions
Cause: 1. Because abnormal statements are detected by the virtual machine. Throw an exception at the statement execution point. Possible scenarios include violation of semantic operations such as array crossing, resource crossing, and program connection Error
2. Java code execution throws statement
3. Asynchronous exception: an error occurs between the threadgroup stop () method call and the VM.
Exception Handling: the internal code of the closed try is switched to the catch statement closest to the try. If no catch statement exists, the thread stops, and only the finnaly statement is executed. When its thread parent class
Threadgroup terminates the thread only after uncatchedexception is called.
Exception classification: (under java. Lang)
Exception:
Aclnotfoundexception, activationexception, alreadyboundexception, applicationexception,
Awtexception, backingstoreexception, badlocationexception, certificateexception, classnotfoundexception,
Clonenotsupportedexception, dataformatexception, destroyfailedexception, expandvetoexception,
Fontformatexception, generalsecurityexception, gssexception, illegalaccessexception,
Instantiationexception, interruptedexception, introspectionexception, invalidmididataexception,
Invalidpreferencesformatexception, invocationtargetexception, ioexception, lastownerexception,
Lineunavailableexception, midiunavailableexception, mimetypeparseexception, namingexception,
Noninvertibletransformexception, nosuchfieldexception, nosuchmethodexception, notboundexception,
Notownerexception, parseexception, parserconfigurationexception, printerexception, printexception,
Privilegedactionexception, propertyvetoexception, refreshfailedexception, reexternalexception,
Runtimeexception, saxexception, servernotactiveexception, sqlexception, toomanylistenersexception,
Transformerexception, unsupportedaudiofileexception, unsupportedcallbackexception,
Unsupportedflavorexception, unsupportedlookandfeelexception, urisyntaxexception,
Userexception, xaexception
Among them, the runtime exception class is not detected: runtimeexception class
Arithmeticexception, arraystoreexception, bufferoverflowexception, bufferunderflowexception,
Cannotredoexception, cannotundoexception, classcastexception, cmcmexception,
Concurrentmodificationexception, domexception, emptystackexception, illegalargumentexception,
Illegalmonitorstateexception, illegalpathstateexception, illegalstateexception, imagingopexception,
Indexoutofboundsexception, missingresourceexception, negativearraysizeexception, nosuchelementexception,
Nullpointerexception, profiledataexception, providerexception, rasterformatexception, securityexception,
Systemexception, undeclaredthrowableexception, unmodifiablesetexception, unsupportedoperationexception
Error:
Assertionerror, awterror, codermalfunctionerror, factoryconfigurationerror, linkageerror, threaddeath,
Transformerfactoryconfigurationerror, virtualmachineerror
(Unfinished)