java.io Exceptions:
The classes in java.io throw a variety of exceptions. Some classes which work along with I/O are good candidates to throw recoverable exceptions. For instance, activities like as opening files or writing to files are likely to fail from time to time. The classes of the java.io package do not throw errors at all.
The java.io exceptions
java.awt Exceptions:
The AWT classes have members which throw one exception and one error:
- AWTException (exception in AWT)
- AWTError (error in AWT)
java.util Exceptions:
The classes of java.util throw the subsequent exceptions:
- EmptyStackException (there is no objects on stack)
- NoSuchElementException (there is no more objects in collection)