102403CS
Roll No………………………..
Course Code: 102403CS
Examination: APRIL-MAY 2023
Course: OBJECT ORIENTED PROGRAMMING WITH JAVA
Time Allowed: 3 Hours Maximum Marks: 100
Minimum Marks: 35
Note: Attempt all questions. Part (A) of each question is
compulsory and carries 4 marks; attempt any two parts from part
(B), (C) and (D) carrying 8 marks each.
Q1 A Briefly describe the use of final keyword. 4
B Explain the concepts of oops with suitable 8
example.
C Explain the memory management by java garbage 8
collector. Also explain finalize ().
D Write a program in Java to read from console, 8
details of 5 employees with following: Name of
employee, Department, Age, Salary. Also Print the
details of every employee.
Q2 A Write the difference between interface and abstract 4
class.
B Write a program to create the User defined 8
exception.
Page 1 of 2
102403CS
C Write a program to demonstrate the effect of access 8
modifiers (default, protected, public and private)
on members with and without inheritance within a
package and outside a package.
D Illustrate the concept of method overloading and 8
method overriding.
Q3 A Briefly describe the thread priority. 4
B Explain wrapper class with suitable example. 8
C Explain the concept of IO in java. 8
D Write a program for creating two threads T1 and 8
T2. The thread T1 should print numbers from 1 to
10 and thread T2 prints characters from A to J.
Ensure that T2 starts first and T1 should only start
when T2 finishes.
Q4 A Briefly describe the Applet life cycle. 4
B Explain 4 types of JDBC driver. 8
C Write two applications in Java using Sockets to 8
communicate with each other using text messages.
D Explain RMI. 8
Q5 A Explain the collection hierarchy. 4
B Write a Java program to demonstrate the use of 8
generics.
C Explain the steps involved in creating and running 8
a JAR file.
D Illustrate the concept of Hash map and Tree map. 8
Page 2 of 2
102403CS
Roll No………………………..
Course Code: 102403CS
Examination: APRIL-MAY 2023
Course: OBJECT ORIENTED PROGRAMMING WITH JAVA
Time Allowed: 3 Hours Maximum Marks: 100
Minimum Marks: 35
Note: Attempt all questions. Part (A) of each question is
compulsory and carries 4 marks; attempt any two parts from part
(B), (C) and (D) carrying 8 marks each.
Q1 A Briefly describe the use of final keyword. 4
B Explain the concepts of oops with suitable 8
example.
C Explain the memory management by java garbage 8
collector. Also explain finalize ().
D Write a program in Java to read from console, 8
details of 5 employees with following: Name of
employee, Department, Age, Salary. Also Print the
details of every employee.
Q2 A Write the difference between interface and abstract 4
class.
B Write a program to create the User defined 8
exception.
Page 1 of 2
102403CS
C Write a program to demonstrate the effect of access 8
modifiers (default, protected, public and private)
on members with and without inheritance within a
package and outside a package.
D Illustrate the concept of method overloading and 8
method overriding.
Q3 A Briefly describe the thread priority. 4
B Explain wrapper class with suitable example. 8
C Explain the concept of IO in java. 8
D Write a program for creating two threads T1 and 8
T2. The thread T1 should print numbers from 1 to
10 and thread T2 prints characters from A to J.
Ensure that T2 starts first and T1 should only start
when T2 finishes.
Q4 A Briefly describe the Applet life cycle. 4
B Explain 4 types of JDBC driver. 8
C Write two applications in Java using Sockets to 8
communicate with each other using text messages.
D Explain RMI. 8
Q5 A Explain the collection hierarchy. 4
B Write a Java program to demonstrate the use of 8
generics.
C Explain the steps involved in creating and running 8
a JAR file.
D Illustrate the concept of Hash map and Tree map. 8
Page 2 of 2