You are on page 1of 1

BHARATH INSTITUTE OF HIGHER EDUCATION & RESEARCH

B.Tech - Computer Science and Engineering


Sixth Semester

PROGRAMMING IN JAVA

Time : Three hours Maximum : 100 marks

Part- A

1. Explain the use of Constructor with an example.


2. Why static methods are used?
3. Write a sample code to illustrate the use of keyword Super.
4. What role does the keyword Final play in inheritance?
5. How a package is defined in Java?
6. How do interfaces make up for multiple inheritance in C++?
7. Mention the Java keywords used to manage Exception Handling.
8. Explain Deadlocks in multithreading.
9. How are applets differing from application programs?
10. Differentiate between byte streams and character streams

Part –B

1) Explain in detail Constructor Overloading with an example.


(or)
Discuss run time polymorphism in Java using Overidden Methods.

2) Write a Java program to perform Stack Implementation using Interfaces.


(or)
Write an Interface program to calculate the area of circle, triangle and rectangle all
implementing an interface called shape.

3) Explain briefly each character class streams.


(or)
Explain in detail the multithreaded programming.

You might also like