Tribhuvan University
Bachelor of Computer Application
Semester 3 · TU Board 2025
Course Title: Object Oriented Programming in Java (CACS204)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to answer the question in their own words as far as possible.
Group B
Attempt any SIX question.(6 × 5 = 30)
- 2.5
What is command-line arguments? Write a program to accept two numbers and display their sum using command-line arguments.
- 3.5
Write a program to demonstrate exception handling of ArrayIndexOutOfBoundsException.
- 4.5
What is string immutability? Explain with an example.
- 5.5
Write a program to create multiple threads and execute them concurrently.
- 6.5
Explain the Serializable interface in java with an example.
Answer comingAlso asked in 2026
- 7.5
What is multiple inheritance? Explain how multiple inheritance is implemented in Java?
Answer comingAlso asked in 2022, 2019
- 8.5
What is JDBC? Explain its architecture.
Group C
Attempt any TWO questions(2 × 10 = 20)
- 9.10
Explain nested and inner classes in java with examples. Discuss the scenarios where inner classes are useful.
- 10.10
Create a class Person (with attributes name and age, and a method display()). Derive a class Employee from Person with additional attributes employeeId and salary. Use constructors and override the display() method to include all details.
- 11.10
Build a form with Passenger Name, Flight Number, Seat Preference (Window, Aisle, Middle), and a checkbox for "I agree to baggage rules." Clicking Confirm Booking should save data to "flight.txt" if rules are accepted otherwise display "Accept baggage rules first." [figure in the original paper]
— The End —