Q1. prepare down a Java program which uses the drawPolygon () method of Graphics class to draw a triangle by using endpoints (25, 30); (75, 80) and (50, 50).
Q2. List all the three UI components of swing and their classes and constructors.
Q3. What do you mean by package in JAVA? How can you make your own package and add classes in that? Describe with the help of an illustration.
Q4. Illustrate the differences between Servlet and Applet? Describe the life cycle of a Servlet with the help of illustration.
Q5. Describe the Java Bean and its merits. Describe different steps to create a new Bean.
Q6. prepare detail notes on the given topics:
b) Mouse Event