If we want to find out determine which fonts are available in a system, we need to create an instance of java.awt.GraphicsEnvironment by calling its static method getLocalGraphicsEnvironment().
Graphics is one of the important feature of Java.By using Graphics we can draw different shapes like Lines,Arcs,Polygon,Oval etc. We can also use different colors to display text or any shape .The graphics class defines a number of drawing functions.
String is a group of characters.If we want to print any string we have three methods first is by using byte(for ASCII CODE) second is char c(for single single character) and third is by using String(complete word).
KeyListener interface are invoked when any key(keyboard key) is pressed or released, or character is entered. When we press the key(any keyboard key) or released or typed the output is displayed in the status bar of the applet window.