You are on page 1of 1

ADITYA COLLEGE OF ENGINEERING

PUNGANUR ROAD, MADANAPALLE-517325


II B.Tech (R20) I semester I Internal Examinations 2023-24 (Descriptive)
OBJECT ORIENTED PROGRAMMING THROUGH JAVA 20A05302T
Common to both CSE (A&B)

Time : 90 min Max Marks : 30


Answer all the questions. Each question carries equal marks (3 X10=30 marks)
1. (a) Define Constructor .Give an example .
(b) Define recursion. write its Syntax.
(c) Write step to compile and execute a java program.
(d) What is the use of try catch in java ?
(e) What is an interface ?
OR
2. (a) What are object oriented concepts that supports java?
(b) What is this keyword in java?
(c) What are the inheritance types supported by java?
(d) What is an exception ?
(e) Why java is considered as java independent .

3. (a) What is meant by recursion? Illustrate with an example.


(b) What is overriding ? Explain with an example program.
OR
4. (a) What is an operator ?Explain any three types of operators in java .
(b) Define class, object and method with syntax with an example program.

5. (a) What is package? Explain with an example program.


(b) Explain different types of inheritance supported by Java.
OR
6. (a) Explain the interface with interface program .
(b) Explain the use of final keyword in java .

You might also like