You are on page 1of 1

9113

0809-1
3 Hours / 80 Marks

1. Attempt any four of the following: 16


a) State any four features of Java.
b) Describe arithmetic operators with example.
c) Describe general structure of class with example.
d) What is major difference between an interface and class?
e) Describe different forms of inheritance with example.
f) What is stream? Explain various types of streams.

2. Attempt any three of the following: 12


a) What is method overloading? Give one example.
b) What is Vector? How it is differ from array? Explain.
c) Define package. How to create package?
d) Write applets to draw a square inside the circle.

3. Attempt any three of the following: 12


a) Describe the complete life cycle of threads.
b) Write the steps involved in developing and running local applet.
c) Write the program to convert a decimal number to binary form and display the
value.
d) What the similarities between classes and interfaces.

4. Attempt any two of the following: 16


a) Explain following methods related to threads.
1) suspend( )
2) resume( )
3) yield( )
4) wait( )
b) Explain substring( ), concat( ), trim( ), replace( ) methods of string class.
c) Write a program to create two threads so one thread will print ascending
numbers whereas second thread will print descending numbers between
sequence 1 to 15 numbers.

5. Attempt any three of the following: 12


a) Describe various bitwise operators with examples.
b) How do we add class or interface to package?
c) How parameter is passed to applet? Explain with example.
d) Describe the most commonly used classes for handling i/o related exceptions.

6. Attempt any three of the following: 12


a) How applet differs from applications? Explain with examples.
b) Write a Java program to calculate area of the circle in which implementation of
interface as a class type.
c) Write a applet program to display “Polygons”.
d) Explain exception handling in Java.

You might also like