Java drawing AWT components related interview questions

What is paint method? - The AWT uses a Callback mechanism for painting which is the same for heavyweight and lightweight components...
Purpose of repaint method - repaint() requests an erase and redraw (update) after a small time delay...
Use of update method - An update method is called on calling the repaint method...
XOR drawing mode - setXORMode(Color c1) sets the paint mode of this graphics context to alternate between a graphics context's current color and the new specified color...
How to load an image from the net into my applet...
How to load an image from a file in a java application - ImageIcon icon = createImageIcon('images/xyz.gif', 'text string');...
Difference between a Window and a Frame - A frame is a resizable, movable window with title bar and close button. Usually it contains Panels...
How to draw text over a background image - BufferedImage img = ImageIO.read(new File('xxx')); // xxx is the path...
Java drawing AWT components - What is paint method? What should we put in paint method? When is it invoked?...