(1) (10 pts) Briefly tell when each of these Java keywords would be used. this super import extends implements public static final void try (2) Circle 10 errors in this code and correct each (20 pts). import java.awt abstract class Shape { protected color; protected int x; protected int y; protected Shape(Color c, int x, int y) { color = c; this.x = x; this.y = y; } public abstract void draw(); } class Rectangle extends Shape { private int width; private int height; public Rectangle(Color c, int x, int y, int width, int height) { super(c, x, y); width = width; height = height; } public void draw() {System.out.println("Rectangle: + x + "," + y + "," + width + "," + height); } } class Circle Shape { private int radius ; public Circle(Color c, int x, int y, int r) { super(c, x, y); this.radius = r; } public void draw() {System.out.println("Circle: "+ x + "," + y + "," + radius); } } public grass GraphicsProgram { static void main(String args[]) { Shape s1 = Rectangle(Color.red, 0, 5, 200); Shape s2 = Circle(Color.green, 20, 30, 100); s1.draw(); s2.draw(); } (3) (10 pts) List 10 style errors in the code in (2). (4) (10 pts) Write an applet tag that would include an applet called MyApp which takes a parameter called Name and make up a value for the parameter. (5) (5pts) The sleep method of the Thread class throws an InterruptedException. Add code to this statement so it will compile. Thread.sleep(1000); (6) (10 pts) What is flicker? Why does it occur? Describe 2 ways of decreasing it. (7) (15) Which method would be the best place to put each line of code? A) init() B) start() C) stop() D) main() E) run() F) paint() G) handleEvent() _____ System.out.println("Welcome to my program"); _____ g.drawString(myString, x, y); ______ runner = new Thread(this); ______ myThread.stop(); _____ while (true) repaint(); _____ aString = getParameter("font"); ______ if (e.id == Event.MOUSE_DOWN) click = true; ______ add(new Button("Exit"); ______ if (evt.target instanceof Button) theColor = Color.red; ______ g.fillRect(23,12,26,33); ______ runThread = null; ______ return true; _______ Thread.sleep(400); _______ aThread.start(); _______ System.out.println("Good bye!"); (8) (10 pts) List 5 Java components and tell what they would be used for. (9) (5 pts) What is the difference between getCodeBase() and getDocumentBase()?