You are on page 1of 2

BSIT 53

V Semester B.Sc. (I.T.) Examination, December 2008/January 2009


JAVA

Time : 3 Hours Max. Marks : 75

Instruction : Answer all questions from Part – A and answer any five
questions from Part – B.

PART - A
(10 Χ2+5 Χ1=25)

1. Define abstract class.

2. What is an interface ?

3. How can we overload constructors ?

4. Array is also a class in Java. Justify.

5. What is applet ?

6. Write the command to comile and execute java program in command line
argument.

7. What do you mean by public static void main()?

8. What is easy mapping ?

9. What is Thread priority ?

10. What is access protection ?

11. Briefly explain :

a) BufferedReader

b) Interface

c) Static class

d) CharAt();

e) StringBuffer.
BSIT 53

PART - B

Answer any five : (5 Χ10=50)

1. Explain the advantages of java over C and C++.

2. a) Why java is strongly associated with internet ?

b) With respect to java explain encapsulation and abstraction.

3. a) Explain different data types supported by java.

b) Write a program in java to find the sum of 1+1/2+1/3…………+1/n.

4. a) With suitable example explain string comparison and string


concatenation in java.

b) Explain different types of operators supported by java.

5. Write a java program to simulate bank transaction. Create a customer


class with name, accno, and print balance as members, write separate methods
to deposit amount, withdraw and print balance.

6. Write the help of java program describe different forms of inheritance in


java.

7. Write a program in java to find the sum of two matrices.

8. With a example explain Arithmetic Exception and Endoffile Exception in


java.

________________

You might also like