Interview Questions - Advanced Java

157.
What is a compilation unit?
A compilation unit is a Java source code file.

158.
What interface is extended by AWT event listeners?
All AWT event listeners extend the java.util.EventListener interface.

159.
What restrictions are placed on method overriding?

Overridden methods must have the same name, argument list, and return type.

The overriding method may not limit the access of the method it overrides.

The overriding method may not throw any exceptions that may not be thrown by the overridden method.


160.
How can a dead thread be restarted?
A dead thread cannot be restarted.