Official 2021 board examination paper for Object Oriented Programming in Java.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications

Paper detail Value
Course Object Oriented Programming in Java
Code No. CACS204
Semester IIIrd
Full marks 60
Pass marks 24
Time 3 hours

Candidates are required to answer the questions in their own words as far as possible.

Group B

2. Explain features of Object oriented concept in detail.

3. What is a continue statement? Write a program in java that displays the sum of odd integers of an array.

4. What is a parameterized constructor? Explain with an example.

5. Explain method overloading in java with proper example.

6. What is the use of 'this' and 'super' keyword? Explain with examples.

7. Defined exception. How exceptions are handled in java? Explain with a proper example.

8. Write short note on (Any Two); a) Interface b) Access modifiers c) JDBC

Group C

9. a) Define inheritance. Explain the use of "extends" keyword in java. b) What is an abstract class? Explain its use with an example.

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. a) Create the following GUI form in Java that checks a number entered in the text box is even or odd. b) Differentiate AWT with swing. Explain any two layout management in Java.