+ 2

what are the different types of exceptions in java?

26th Aug 2018, 5:40 PM
S.Vidhya
S.Vidhya - avatar
4 Antworten
+ 14
Class Exception Direct Known Subclasses: AbsentInformationException, AclNotFoundException, ActivationException, AgentInitializationException, AgentLoadException, AlreadyBoundException, ApplicationException, AttachNotSupportedException, AWTException, BackingStoreException, BadAttributeValueExpException, BadBinaryOpValueExpException, BadLocationException, BadStringOperationException, BrokenBarrierException, CardException, CertificateException, ClassNotLoadedException, CloneNotSupportedException, DataFormatException, DatatypeConfigurationException, DestroyFailedException, ExecutionControl.ExecutionControlException, ExecutionException, ExpandVetoException, FontFormatException, GeneralSecurityException, GSSException, IllegalClassFormatException, IllegalConnectorArgumentsException, IncompatibleThreadStateException, InterruptedException, IntrospectionException, InvalidApplicationException, InvalidMidiDataException [...] Source: Language reference https://docs.oracle.com/javase/9/docs/api/java/lang/Exception.html
26th Aug 2018, 6:27 PM
Tashi N
Tashi N - avatar
+ 9
Good question ! 🐈😻💖 1.Checked exceptions 😄 2.Unchecked exceptions 🤗 3.Errors 🙆‍♂️
26th Aug 2018, 8:01 PM
NimWing Yuan
NimWing Yuan - avatar
+ 4
exception :- 1. checked 2.unchecked checked:- 1.IOexception 2.filenotfound etc unchecked:- 1.nullpoint exception 2.arithematic exception etc these two along with error (error+exception) are subclasses of throwable.
27th Aug 2018, 8:24 AM
Keerttik Titan
Keerttik Titan - avatar
- 1
checked unchecked
5th Sep 2018, 8:51 AM
muralidhar