Tribhuvan University
Bachelor of Computer Application
Semester 3 · TU Board 2021
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
Explain features of Object oriented concept in detail.
- 3.5
What is a continue statement? Write a program in java that displays the sum of odd integers of an array.
- 4.5
What is a parameterized constructor? Explain with an example.
Answer comingAlso asked in 2026
- 5.5
Explain method overloading in java with proper example.
- 6.5
What is the use of 'this' and 'super' keyword? Explain with examples.
- 7.5
Defined exception. How exceptions are handled in java? Explain with a proper example.
Answer comingAlso asked in 2020
- 8.5
Write short note on (Any Two); a) Interface b) Access modifiers c) JDBC
Group C
Attempt any TWO questions(2 × 10 = 20)
- 9.10
a) Define inheritance. Explain the use of "extends" keyword in java. b) What is an abstract class? Explain its use with an example.
- 10.10
a) List and explain any five String methods used in Java with examples. b) Differentiate between byte stream and character stream. Write a program to copy the content of a file to another file using streams.
- 11.10
a) Create the following GUI form in Java that checks a number entered in the text box is even or odd. [figure in the original paper] b) Differentiate AWT with swing. Explain any two layout management in Java.
— The End —