CT2 OOP JAVA

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Even Semester (2023-24) 2nd Class Test

B.Tech / CSE+IT / 2-Year/ 4-Semester


Object Oriented Programming with Java-BCS-403
Time: 01:30 Hrs Maximum Marks: 30
Roll No.: Date of Examination:
…………………………………………………………………………………………………………

Section: A
Attempt all questions, each question carries equal marks. 1 x 5=5

1. What are exceptions?


2. What is type Annotations?
3. Define threads in java.
4. Define sealed classes in java.
5. Write diamond syntax with inner Anonymous class.

Section: B

Attempt any five questions, each question carries equal marks. 3 x 5= 15

6. Differentiate between switch statement & switch expression.


7. Explain Module System in Java.
8. Explain stream API in Java & its features.
9. How JVM handle exceptions?
10. Write a java program in java to implement thread, one thread print 0 to 10 & other 10 to 0.
11. Describe thread life cycle. Explain its various states with different methods used.

Section: C

Attempt any two questions, each question carries equal marks. 5 x 2= 10

12. Explain java method reference and its types each with a program.
13. What are exceptions? Explain various exception handling keywords with java program.
14. What is File Handling and describe its various operations with a java program.

You might also like