Printed Pages - 4 Roll No.
I-3906
B.C.A. (Part-III) Examination, 2025
Papr - II
PROGRAMMING IN JAVA
(BCA-302)
Time Allowed : Three Hours
Maximum Marks : 80
Note : Attempt any two parts from each unit. AlI
questions carry equal marks.
UNIT-I
Q. 1. (a) Define methods. Explain inner class with
example.
(b) What is vector ? Explain with suitable
example.
(c) Write a JAVA program to display numbers
from 50 to 1 using for loop.
I-3906 PT.0.
(2)
UNIT-II
Q. 2. (a) What do you mean by an operator ?
Explaln
logical operator and bitwise operators with
example.
(b) Write a JAVA program to display the following
in output using an array :
Given list: 55, 42, 82, 65, 70
Sorted list : 82, 70, 65, 55, 42
(c) Differentiate between Nested-if and Switch
statement in Java.
UNIT-III
Q. 3. (a) Define class and object. How to aCcess
methods through any object ?
I-3906
(3)
(b) Describe types of inheritance with example
in Java.
(c) Explain the following :
(0) Garbage collection
() Constructor
UNIT-IV
Q. 4. (a) Explain various types of exception in Java.
(b) Write the difference between class and
interface with example.
(c) What are built-in packages and user-defined
packages ? Explain it.
UNIT-V
Q. 5. (a) How to perform read and write operations on
files from console ?
I-3906 PT.0.
(4)
(b) How to suspend, resume and stop to any
thread ? Explain with suitable Java program.
(c) Drawand explain architecture of JDBC.
I-3906 1,000