JAVA
JAVA
Q1-
Q2–
Q3–
1. Describe the use of following methods: (i) Drawoval ( ) (ii) getFont ( ) (iii) drawRect ( ) (iv)
getFamily ( ) v. drawLine ( ) vi) drawArc ( ) vii. drawPolygon ( )
2. Explain the applet life cycle with neat diagram.
3. Differentiate between Byte Stream Class and Character Stream Class.
4. Define type casting. Explain its types with syntax and example
Q4–
Q5–
1. Explain vector with the help of example. Explain any four methods of vector class with
example.
2. Explain the concept of Dynamic method dispatch with suitable example.
3. Write a program to print even and odd number using two threads with delay of 1000ms after
each number.
4. Write a program that throws an exception called “NoMatchException” when a string is not
equal to “India”.
Q6–
1. Define thread priority ? Write default priority values and the methods to set and change
them.
2. What is constructor? List types of constructor. Explain paramaterized constructor with
suitable example.
Honourable mentions –