BCA 3rd Semester

OOP In Java 2024 Board Question Paper

Tribhuvan university logo

Tribhuvan university

Bachelor In Computer Application

Course Title: OOP In JAVA

Code No:CACS 204

Semester:III

2024

Full Marks:60 Pass Marks:24 Time:3 hours

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

Group B
Attempt any SIX question.
[6x5=30]
11.

What is constructor? Explain the role of constructor in Java class by considering a suitable example and also list the type of constructor.

12.

Define inheritance. Explain types of inheritance with suitable example.

13.

Define Package. Explain steps in creation and implementation of package with example.

14.

What is multithreading? How does Java support inter-thread communication? Explain with example.

15.

How to handle multiple catch blocks for a nested try block? Explain with an example.

16.

What is difference between String and String buffer and explain 3 methods of String and String Buffer class with example.

17.

Write short notes on: (any two)
i. JDBC Driver
ii. Access Modifiers
iii. JDK, JRE and JVM

Group C

Attempt any TWO questions

[2x10=20]
18.

Define array and multi dimensional array. Write a program to read two m x n matrices, perform multiplication operation and store result in third matrix.

19.

Write a program to create the following simple GUI based application. If user press the Submit button, your program should store the information in a file named "exam.txt" only when he accepts the terms and condition otherwise it should display a message "please accept the terms and condition first".

20.

Differentiate between overloading and overriding with suitable example WAP to Create a Set with following values: {"London", "NewYork", "SanFrancisco", "Beijing", "NewYork"} Perform operations on above Set:
>Add new element
>Get Set size
>Remove element
>Contains element?
>addAll
>removeAll
>retainAll