Which containers use a Flow layout as their default layout?-
Panel and Applet classes use the FlowLayout as their default layout.
What interface is extended by AWT event listeners
All AWT event listeners extend the java.util.EventListener interface.
Name four Container classes.
Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane.
What is the relationship between clipping and repainting
When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.
How do you set security in applets
using setSecurityManager() method
Name three Component subclasses that support painting.
The Canvas, Frame, Panel, and Applet classes support painting.
What is the use of bin and lib in JDK?-
Bin contains all tools such as javac, appletviewer, awt tool, etc., whereas lib contains API and all packages.
What is casting?– Casting is used to convert the value of one type to another.
What is an applet
Applet is a dynamic and interactive program that runs inside a web page displayed by a java capable browser
What class is the top of the AWT event hierarchy
The java.awt.AWTEvent class is the highest-level class in the AWT event-class hierarchy.
What is the difference between an applet and a servlet?-
- a) Servlets are to servers what applets are to browsers. b) Applets must have graphical user interfaces whereas servlets have no graphical user interfaces.