+ 2
what are the different types of exceptions in java?
5 Respostas
+ 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
+ 9
Good question ! 🐈😻💖
1.Checked exceptions 😄
2.Unchecked exceptions 🤗
3.Errors 🙆♂️
+ 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.
- 1
checked unchecked