Class AWTException in Java

Class AWTException in Java An AWTException is thrown from an application when an exception has occurred…