0% found this document useful (0 votes)
28 views2 pages

Document From Anish-1

Khboj

Uploaded by

nisthadiwedi293
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

Document From Anish-1

Khboj

Uploaded by

nisthadiwedi293
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Printed Pages : 2

Paper ID: 17207 Roll No..............................

END-SEMESTER EXAMINATION, 2022-23


(TERM : 2202)
CSE 253 : OBJECT ORIENTED PROGRAMMING USING JAVA
Time : 02 Hrs. Max. Marks: 100
Note: 1. All questions are compulsory.
2. Assume missing data suitably, if any.

CO1: Describe the fundamental of object oriented concept in java.


CO2: Compare and contrast different features of java.
CO3: Develop programs using core concepts of java.
CO4: Analyze Exception and Error in java programs
CO5: Explain the concept of inheritance, polymorphism and interfaces.
CO6: Design application of real world problem using Java

COS Marks BTL

SECTION-A

All Questions are Compulsory: (5×5=25 Marks)


1. Define Encapsulation in OOP language. Explain with example. CO1 5 K1
2. Write the difference between jdk and jre. CO2 5 K1
3. Write the advantages of using methods or functions in java. CO3 5 K2
4. What is abstract method? What is abstract class? CO4 5 K2
5. Explain multithreading in java. CO5 5 K3

SECTION-B

All Questions are Compulsory: (3×8=24 Marks)


6. (a) What is constructor? What are different types of constructors in java? Write CO3 8 K3
the conditions for creating a constructor.
---- OR ----
(b) What is String in java? Why string is called immutable?
7. (a) What is static variable? Write the difference between class variable and CO4 8 K4
instance variable.
---- OR ----
(b) What is polymorphism? What are different types of polymorphism? Give
example.
8. (a) Explain try, catch and finally block in exception handling. CO5 8 K4
---- OR ----
(b) What are different ways of creating a thread. Give example.

1 Contd…..
SECTION-C

All Questions are Compulsory: (3×12=36 Marks)


9. (a) Write java Program to print the duplicate elements of an array. CO3 12 K4/K5
---- OR ----
(b) Write java Program to find the frequency of characters.
10. (a) Write a program to show the inheritance relation between Person and CO4 12 K4/K5
Employee class.
---- OR ----
(b) Write the program to override the move methods of Vehicle and car class.
11. (a) Write a program to throw an exception if we try to assign a value to array CO5 12 K4/K5
whose index is greater than its length.
---- OR ----
(b) Write a java program to create a thread by implementing runnable interface.

SECTION-D
Attempt the following Question: (1×15=15 Marks)
12. (a) What are different types of inheritance? Explain each of them. CO6 15 K5/K6
---- OR ----
(b) Create two pacakages “edu” and “com” both packages have class abc with
function sum. Sum function in class abc in package edu perform sum and
Sum function in class abc of com package perform subtraction. How you
will access method of both classes. Write the program for it.

*******

2 Contd…..

You might also like